title: Schedule a repeating event in Python
body: <p>I am writing a script running as daemon process. Every 12 hours, it runs some job.</p>
  
  <p>Is that a good practice to do the following code? I'm using Python 2.7</p>
  
  <pre><code>import sched
  
  scheduler = sched.scheduler(time.time, time.sleep)
  scheduler.enter(0, 1, update, ())
  
  while True:
      scheduler.run()
      scheduler.enter(12*60*60, 1, update, ())
  </code></pre>
  
  <p>Is there any other better option?</p>