A Popen creationflags parameter to specify that a new process group will be created. This flag is necessary for using os.kill() on the subprocess.
subprocess/CREATE_NEW_PROCESS_GROUP
CREATE_NEW_PROCESS_GROUP