make compatible to LoopingCall in twisted 10.1