Do not use `hasattr` in `Group.__getattr__` to check for `_group_attribute_access_active` -- this easily leads to infinite recursions in Python3. Instead, check using `in self.__dict__`.