title: How to repeat a function every N minutes?
body: <p>In my python script I want to repeat a function every N minutes, and, of course, the main thread has to keep working as well. In the main thread I have this:</p>
  
  <pre><code># something
  # ......
  while True:
    # something else
    sleep(1)
  </code></pre>
  
  <p>So how can I create a function (I guess, in another thread) which executes every N minutes? Should I use a timer, or Even, or just a Thread? I'm a bit confused.</p>