def get_groups_of_player(self, player: str) -> list:
    " return list of all groups id's where player is the owner "
    return [group for group in self._groups if (self._groups[group]['player'] == player)]
return list of all groups id's where player is the owner
def get_groups_of_player(self, player: str) -> list:
    "  "
    return [group for group in self._groups if (self._groups[group]['player'] == player)]