code: def has_update(self):
          
          _time = time
          if _time() > self.next_update:
              self.update_data()
              self.next_update = _time() + self.interval
              return True
          return False
docs: Depending on the interval:
  
          returns True if its time for an update,
          returns False if its not yet time for an update