Bug fix SQLAlchemy scoped session

ScopedSession from SQLAlchemy 0.7 has been renamed to scoped_session in
0.8.