A Popen creationflags parameter to specify that a new process is not associated with the job.
subprocess/CREATE_BREAKAWAY_FROM_JOB
CREATE_BREAKAWAY_FROM_JOB