[Concept] [PATCH 07/16] test/py: Create a named tuple for the pattern list