def _flatten(obj_to_vars):
    """
    Object section is prefixed to variable names except the `general` section
    [general]
    warning = red
        >> translates to: warning = red

    [panel]
    title = white
        >> translates to: panel_title = white
    """

    all_vars = dict()
    for obj, vars_ in obj_to_vars.items():
        if obj == 'general':
            all_vars.update(vars_)
        else:
            all_vars.update({f"{obj}_{k}": v for k, v in vars_.items()})
    return all_vars