Easy way to query by session id

def where_session_id(cls, session_id):
        """ Easy way to query by session id """
        try:
            session = cls.query.filter_by(session_id=session_id).one()
            return session
        except (NoResultFound, MultipleResultsFound):
            return None