title: Import function only in another file
body: <p>So in my <code>file1.py</code>, I have something like:</p>
  
  <pre><code>def run():
     # Do something
  
  print "Hi"
  </code></pre>
  
  <p>Now I want to use function <code>run()</code> in another file. </p>
  
  <pre><code>from file1.py import run
  </code></pre>
  
  <p>However, when I execute the other file it also prints <code>Hi</code>. How do I suppress this?</p>