I want to be able to start a process and then be able to kill it afterwards
A simple function that uses subprocess module:
def CMD(cmd) : p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=False) return (p.stdin, p.stdout, p.stderr)