how to determine pid of process started via os.system,proc.terminate()