I have just started using SQLAlchemy. I decided to use it because I was using a lot of string expression in the middle of my sqlite queries.
So, that is my problem.
The function filter(*criterion) means you can use tuple as it's argument, @Wolph has detail here: SQLALchemy dynamic filter_by for detail
filter(*criterion)