from schema import DEFAULTS def load(raw): """Overlay user settings on the defaults.""" out = dict(DEFAULTS) for key, value in raw.items(): out[key] = value return out