title: Python time.sleep() hangs
body: <p>I'm trying to import a python function into another python while loop.  This is the code:</p>
  
  <p>test.py</p>
  
  <pre><code>#!/usr/bin/python
  import time
  
  t = 15
  print t
  </code></pre>
  
  <p>sleep_test.py</p>
  
  <pre><code>#!/usr/bin/python
  import time
  
  while True:
      import test
      time.sleep(10)
  </code></pre>
  
  <p>When I run sleep_test.py, 15 is printed once and then the loop hangs.  I'm trying to print 15 consecutively after a 10 second delay.  Does anyone have suggestion how I might accomplish this with the code I've provided?</p>