import psutil
def kill_process(pid):
parent_proc = psutil.Process(pid)
for child_proc in parent_proc.children(recursive=True):
child_proc.kill()
parent_proc.kill()
08-07
796
09-07