import subprocessp = subprocess.Popen(['notepad'], stdout = subprocess.PIPE, stdin = subprocess.PIPE)