How to terminate process from Python using pid?,"os.kill(pid, signal.SIGTERM)"