Python execute intermediate commit