support sqlalchemy expressions
fix pep8
Merge pull request #504 from RedTurtle/sqlalchemy

support sqlalchemy expressions