python timer wrapper in one thread to support more than one timer