title: pass in popen parameters
body: <p>I have code like:</p>
  
  <pre><code>proc = subprocess.Popen(["/path/to/program", '-c', '-', ran_opt_get_ap], stdout=subprocess.PIPE) 
  </code></pre>
  
  <p>And I want to extract <code>"/path/to/program", '-c', '-'</code> to a variable so i can change it easily.
  I have tried a few different syntax's for cmd_here and they give various errors, but what is the correct way? Here is an example I tried:</p>
  
  <pre><code>cmd_here = "/jffs2/usbflash0/ran/rancli -c -"
  proc = subprocess.Popen([cmd_here, ran_opt_get_ap], stdout=subprocess.PIPE) 
  </code></pre>
  
  <p>This only works with <code>shell=True</code> which i wish to avoid, what syntax should I use? I had it in a list but it complained about that.</p>