Sqlalchemy

modified match function