def METHOD_NAME(cfg, name, settings):
    if not cfg.has_section(name):
        cfg.add_section(name)
    for key, value in settings.items():
        val = make_value(value)
        cfg.set(name, key, val)