def add_to_config(config, info):
    """Add sections and key-val paris in `info` to `config`.

    Parameters
    ----------
    config : configparser.ConfigParser object
    info : dict of dicts, see io.writearr()

    Returns
    -------
    modified config
    """
    for sec, dct in info.items():
        config.add_section(sec)
        for key, val in dct.items():
            config.set(sec, key, val)
    return config