Catch import error when looking for ScopedSession, to be compatible with sqlalchemy 0.50 through 0.8.0+