engine = create_engine('sqlite:///myfile.db')

@event.listens_for(engine, 'connect')
def do_connect(dbapi_connection, connection_record):
    dbapi_connection.isolation_level = None

@event.listens_for(engine, 'begin')
def do_begin(conn):
    conn.execute('BEGIN')
Nested transactions with SQLAlchemy and sqlite