there seems to be a pattern here.
introduce a helper method so you can write `self._writeConfig(config)` instead?