import functools
import operator


def get_dict_element(data, path, delimiter='.'):
    """
    Traverse a dict using a 'delimiter' on a target string.
    getitem(a, b) returns the value of a at index b
    """
    return functools.reduce(operator.getitem, path.split(delimiter), data)