title: Repeat python function at every system clock minute
body: <p>I've seen that I can repeat a function with python every x seconds by using a event loop library <a href="https://stackoverflow.com/questions/474528/what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds">in this post</a>:</p>
  <pre><code>import sched, time
  s = sched.scheduler(time.time, time.sleep)
  def do_something(sc): 
      print(&quot;Doing stuff...&quot;)
      # do your stuff
      s.enter(60, 1, do_something, (sc,))
  
  s.enter(60, 1, do_something, (s,))
  s.run()
  </code></pre>
  <p>But I need something slightly different: I need that the function will be called at every system clock minute: at 11:44:00PM, 11:45:00PM and so on.</p>
  <p>How can I achieve this result?</p>