Fix the SIGPIPE issue in subprocess.Popen.