def sendStatus(self, timeout=10): if Host.has_messages: Host.sendStatus() self.send_status = reactor.callLater(timeout, self.sendStatus)