Returns a dictionary of an entire section

def get_section(section_name, cfg_file=cfg_file):
    """ Returns a dictionary of an entire section """
    parser = get_parser(cfg_file=cfg_file)
    options = parser.options(section_name)
    result = {}
    for option in options:
        result[option] = parser.get(section=section_name, option=option)
    return result