def groupify(data):
    """
    Takes a dict with groups identified by ./ and turns it into a nested dict
    """
    new = {}
    for key in data.keys():
        if "./" in key:
            group, field = key.split("./")
            if group not in new:
                new[group] = {}
            new[group][field] = data[key]
        else:
            new[key] = data[key]

    return new