title: Popen and python
body: <p>Working on some code and I'm given the error when running it from the command prompt...</p>
  
  <pre><code>NameError: name 'Popen' is not defined
  </code></pre>
  
  <p>but I've imported both <code>import os</code> and <code>import sys</code>.</p>
  
  <p>Here's part of the code</p>
  
  <pre><code>exepath = os.path.join(EXE File location is here)
  exepath = '"' + os.path.normpath(exepath) + '"'
  cmd = [exepath, '-el', str(el), '-n', str(z)]
  
  print 'The python program is running this command:'
  print cmd
  
  process = Popen(cmd, stderr=STDOUT, stdout=PIPE)
  outputstring = process.communicate()[0]
  </code></pre>
  
  <p>Am I missing something elementary? I wouldn't doubt it. Thanks!</p>