Extensions to subprocess.Popen