code: def load_settings(self, settings):
          
          with open(settings) as settings_file:
              settings_dict = simplejson.load(settings_file)
          for key, value in settings_dict.items():
              self.__setattr__(key, value)
docs: Load settings from file