title: Receiving AttributeError from os.path.isfile() function
body: <p>Receiving the below error when running my script:</p>
  
  <pre><code>Traceback (most recent call last):
    File "HC_Main.py", line 54, in &lt;module&gt;
      setup_exists = os.path.isfile(config_file)
  AttributeError: 'function' object has no attribute 'isfile'
  </code></pre>
  
  <p>Sample code is:</p>
  
  <pre><code>import os
  setup_exists = os.path.isfile(setup_exists)
  if setup_exists is False:
      print "Setup file exists"
  </code></pre>
  
  <p>When I checked the IDLE console with <code>dir(os.path)</code>, <code>isfile</code> is listed. Additionaly, I can use the function without issues in IDLE as well.</p>
  
  <p>Could it be my IDE causing issues here? I've also tried running the script apart from the IDE, but it still receives the error.</p>