'Extract settings from a config object'

def _extract_settings(self, config):

    settings = {'host': config.get('sd_backend_host', DEFAULT_ETCD_HOST), 'port': int(config.get('sd_backend_port', (-1))), 'username': config.get('sd_backend_username', None), 'password': config.get('sd_backend_password', None), 'allow_reconnect': config.get('etcd_allow_reconnect', DEFAULT_RECO), 'protocol': config.get('etcd_protocol', DEFAULT_ETCD_PROTOCOL)}
    return settings
