def after_request(response): db_session.remove() return response
def shutdown_session(exception=None): db_session.remove()