title: Python: calling function from imported file
body: <p>How do you call a function from an imported file? for example:</p>
  
  <p>Test: </p>
  
  <pre><code>import test2
  def aFunction():
      print "hi there"
  </code></pre>
  
  <p>Test2:</p>
  
  <pre><code>import test
  aFunction()
  </code></pre>
  
  <p>This give me a name error, saying my function isn't defined. I've also tried:</p>
  
  <pre><code>from test import aFunction
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>from test import *
  </code></pre>
  
  <p>I've also tried not importing test2 in test. I'm coming to Python from C++, so I fear I'm missing something blatantly obvious to veteran Python progammers...</p>