def traverse_dict(data, key, default, delimiter=DEFAULT_TARGET_DELIM):
    try:
        for each in key.split(delimiter):
            data = data[each]
    except (KeyError, IndexError, TypeError):
        # Encountered a non-indexable value in the middle of traversing
        return default
    return data
Traverse a dict using a colon-delimited (or otherwise delimited, using the
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/traverse_dict