'If expired, reset the timer and return True.'

def expired(self):

    if (self.timeout is None):
        return False
    elif ((time.time() - self.time) > self.timeout):
        self.reset()
        return True
    return False
