title: how to schedule a timed event in python
body: <p>I'd like to schedule a repeated timed event in python like this:
   "at time X launch function Y (in a separate thread) and repeat every hour"</p>
  
  <p>"X" is fixed timestamp</p>
  
  <p>The code should be cross-platform, so i'd like to avoid using an external program like "cron" to do this.</p>
  
  <p>code extract:</p>
  
  <pre>
      import threading
      threading.Timer(10*60, mail.check_mail).start()
      #... SET UP TIMED EVENTS HERE
      while(1):
          print("please enter command")
          try:
              command = raw_input()
          except:
              continue
          handle_command(command) 
  </pre>