title: python subprocess and passing in shell arguments
body: <p>I'm trying to utilize python's subprocess to run a command that downloads a file, but it requires an argument in order to proceed. If I run the command stand alone, it will prompt you as shown below:</p>
  
  <pre><code>./goro-new export --branch=testing --file=corp/goro.sites/test/meta.json
  
  Finding pages .........
  The following pages will be exported from Goro to your local filesystem:
  
    /goro.sites/test/meta.json -&gt; /usr/local/home/$user/schools/goro.sites/test/meta.json
  
  Export pages? [y/N]: y
  Exporting 1 pages ..............................................................................................................   0%  0:00:03
  
  Exported 1 pages in 3.66281s.
  </code></pre>
  
  <p>My question is, how do I answer the "y/N" in the Export pages part? I suspect I need to pass in an argument to my subprocess, but I am relatively a newcomer to python, so I was hoping for some help. Below is a printout of my testing in the python environment:</p>
  
  <pre><code>&gt;&gt;&gt; import subprocess
  &gt;&gt;&gt; cmd = ['goro-new export --branch=test --file=corp/goro.sites/test/meta.json']
  &gt;&gt;&gt; p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE, stdin=subprocess.PIPE)
  &gt;&gt;&gt; out, err = p.communicate()
  &gt;&gt;&gt; print out
  Finding pages .... 
  The following pages will be exported from Goro to your local filesystem:
  /goro.sites/test/meta.json -&gt; /var/www/html/goro.sites/test/meta.json
  Export pages? [y/N]: 
  </code></pre>
  
  <p>How can I pass in the "y/N" so it can proceed?</p>