class SQLAlchemy(FlaskSQLAlchemy):
    """Implement or overide extension methods."""

def apply_driver_hacks(self, app, info, options):
    """Called before engine creation."""
super(SQLAlchemy, self).apply_driver_hacks(app, info, options)
LocalProxy objects in Flask-SQLAlchemy