title: How to use subprocess popen Python
body: <p>Since <code>os.popen</code> is being replaced by <code>subprocess.popen</code>, I was wondering how would I convert</p>
  <pre><code>os.popen('swfdump /tmp/filename.swf/ -d')
  </code></pre>
  <p>to <code>subprocess.popen()</code></p>
  <p>I tried:</p>
  <pre><code>subprocess.Popen(&quot;swfdump /tmp/filename.swf -d&quot;)
  subprocess.Popen(&quot;swfdump %s -d&quot; % (filename))  # NOTE: filename is a variable
                                                  # containing /tmp/filename.swf
  </code></pre>
  <p>But I guess I'm not properly writing this out. Any help would be appreciated. Thanks</p>