title: Good or bad practice in Python: import in the middle of a file
body: <p>Suppose I have a relatively long module, but need an external module or method only once.</p>
  
  <p>Is it considered OK to import that method or module in the middle of the module?</p>
  
  <p>Or should <code>import</code>s only be in the first part of the module.</p>
  
  <p>Example:</p>
  
  <pre><code>import string, pythis, pythat
  ...
  ...
  ...
  ...
  def func():
       blah
       blah 
       blah
       from pysomething import foo
       foo()
       etc
       etc 
       etc
  ...
  ...
  ...
  </code></pre>
  
  <p><strong>Please justify your answer and add links to <a href="http://en.wikipedia.org/wiki/Python_%28programming_language%29#Development" rel="noreferrer">PEP</a>s or relevant sources</strong></p>