Groups Function In Python Meaning