SQLAlchemy 0.9.3 and some code style changes (PEP8, etc)