title: Python subprocess has no attribute "check_output"
body: <p>I have code that uses <code>subprocess.check_output</code> just fine, I had to reinstall Ubuntu 16.04 and afterwards it's complaining that it now can't find the attribute check_output.</p>
  
  <pre><code>import subprocess
  
  p = subprocess.check_output("here is a command", shell=True)
  
  /usr/bin/python2.7 /home/username/subprocess.py
  Traceback (most recent call last):
    File "/home/username/subprocess.py", line 1, in &lt;module&gt;
      import subprocess
    File "/home/username/subprocess.py", line 4, in &lt;module&gt;
      p = subprocess.check_output("here is a command", shell=True)
  AttributeError: 'module' object has no attribute 'check_output'
  </code></pre>
  
  <p>Note that I am using Python2.7 which according to this post here should resolve this problem but it doesn't.</p>
  
  <p><a href="https://stackoverflow.com/questions/26894024/subprocess-check-output-module-object-has-out-attribute-check-output">subprocess.check_output() module object has out attribute &#39;check_output&#39;</a></p>
  
  <p>What gives? I tried pip install <code>subprocess</code> or pip uninstall <code>subprocess</code> but no luck. How do I update <code>subprocess</code> to the latest version so that it has the <code>check_output</code> attribute? I don't want to use <code>Popen</code>.</p>