is not None does not work in SqlAlchemy.