code: def update(self, state, tnow):
          '''update the threat state'''
          self.state = state
          self.update_time = tnof update(self, state, tnow):
          '''update the threat state'''
          self.state = state
          self.update_time = tnow
docs: update the threat state