'Given a player, return all matching sessions.
Args:
player (Player): Player to get sessions from.
Returns:
sessions (list): All Sessions associated with this player.'

def sessions_from_player(self, player):

    uid = player.uid
    return [session for session in self.values() if (session.logged_in and (session.uid == uid))]
