def nested_config(config):
    cfg = {}
    token = 'switchboard.'
    for (k, v) in config.iteritems():
        if k.startswith(token):
            cfg[k.replace(token, '')] = v
    return cfg
def nested_config(config):
    cfg = {}
    token = 'switchboard.'
    for (k, v) in config.iteritems():
        if k.startswith(token):
            cfg[k.replace(token, )] = v
    return cfg