Fix bad variable in Python grouping definitions.