code: def save_settings(self, settings_file):
          
          settings = {}
          for parameter in self.parameter_maxima:
              settings[parameter] = self.__getattribute__(parameter)
          with open(settings_file, "w") as settings_file:
              simplejson.dump(settings, settings_file)
docs: Save block matcher settings to a file object