Have a look at `get_uh_setting` and `set_uh_setting` in https://github.com/unknown-horizons/unknown-horizons/blob/master/horizons/engine/engine.py#L179. Those are useful shortcuts for what you're doing here.

And there is no need to store the setting object on the class/instance.