def get_config_by_name(section, name):
    """
    Extract a named section from the configuration file
    """
    for config in section:
        if config['name'] == name:
            return config
    return None