'Create a Config() object from settings
Only attributes found in Config.settings_keys will be added to object.
config attribute precedence is 1.) **settings 2.) self 3.) default_config'

def __init__(self, **settings):

    from .resources import default_config
    default = vars(default_config)
    for key in self.settings_keys:
        try:
            value = settings[key]
        except KeyError:
            value = getattr(self, key, default[key])
        setattr(self, key, value)
    self._init_deprecated(**settings)
