[Concept] [PATCH 08/16] test/py: Rename bad_pattern_defs to PATTERNS