def do_connect(dbapi_connection, connection_record):
    dbapi_connection.isolation_level = None

@event.listens_for(engine, 'begin')
def do_begin(conn):
    conn.execute('BEGIN')
Вложенные транзакции с SQLAlchemy и sqlite