os.spawnv()

os.spawnv(mode, file, args) → integer[source]

Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process’s exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.