code: def update_model_dict(self):
          
          dct = {}
          models = self.chimera.openModels
          for md in models.list():
              dct[md.name] = md.id
          self.model_dict = dct
docs: Updates the model dictionary