Using Python to commit a script under multiprocess