Easily filter SQLAlchemy queries