now_time is not getting updated while code is looping
<p>i'm trying to do a loop, that keeps checking if time is between 2 times.. so it turns my lights on. but while its looping the current time does not get updated.  im trying to create a aquarium controller, that turns 3 sets of lights on a different times.  </p>

<p>thanks for your help :)</p>

<pre><code>from  datetime import datetime, time
now = datetime.now()
now_time = now.time()
SleepTimeL = 2

if now_time &gt;= time (9,30) and now_time &lt;= time (16,15):
    print "yes, within the interval"
    print now_time
    time.sleep( 9 )

else:
    print "no"
</code></pre>