Replace `os.system` with subprocess, possibly popen for sending kill signal. This has been partly done but need to check all code.
Replace
os.systemwith subprocess, possibly popen for sending kill signal. This has been partly done but need to check all code.