title: python - how to set more than one Timer
body: <p>I need to set multi-timers in the same script, i have two functions <code>fun_1()</code> and <code>fun_2()</code> that I want to execute one time by minute.</p>
  
  <p>I want to execute the two timers in the same time and be able to kill them with <code>keyboardinterrupt</code>.</p>
  
  <p>What I tried so far is:</p>
  
  <pre class="lang-py prettyprint-override"><code>import threading 
  
  def timer_1():
      fun_1()
      threading.Timer(60.0, timer_1).start()
  def timer_2():
      fun_2()
      threading.Timer(60.0, timer_2).start()
  
  if __name__ == "__main__":
      timer_1()
      timer_2()
  </code></pre>
  
  <p>There is two problems with my code:</p>
  
  <ol>
  <li><code>timer_2</code> will be executed after one minute of the <code>timer_1</code> execution</li>
  <li>The <code>keyboardInterrupt</code>is ignored </li>
  </ol>