code: def update_fact(self, fact_id, fact, temporary_activity = False):
          
  
  
          start_time = timegm((fact.start_time or dt.datetime.now()).timetuple())
  
          end_time = fact.end_time or 0
          if end_time:
              end_time = timegm(end_time.timetuple())
  
          new_id =  self.conn.UpdateFact(fact_id,
                                         fact.serialized_name(),
                                         start_time,
                                         end_time,
                                         temporary_activity)
          return new_id
docs: Update fact values. See add_fact for rules.
          Update is performed via remove/insert, so the
          fact_id after update should not be used anymore. Instead use the ID
          from the fact dict that is returned by this function