@staticmethod
def _incorporate_vals(ctx, vals):
    """Take a list of tuples and incorporate it into a dictionary."""
    c = ctx
    for k, v in vals:
        r = c
        n = k[-1]
        pth = k[:-1]
        for dp in pth:
            if dp in r:
                if isinstance(r[dp], dict):
                    r = r[dp]
                else:
                    raise ValueError(
                        'Overriding config value with section! [{0}]'.format(k)
                        )
            else:
                r[dp] = {}
                r = r[dp]
        r[n] = v
    return c
