code: def pipe(cmd, txt):
      
      return Popen(
          cmd2args(cmd),
          stdout=subprocess.PIPE,
          stdin=subprocess.PIPE,
          shell=win32
      ).communicate(txt)[0]
docs: Pipe `txt` into the command `cmd` and return the output.