from functools import reduce
import operator


def get_from_dict(dataDict, mapList):
    """Given a list of keys retrieve data from a nested dictionary."""
    return reduce(operator.getitem, mapList, dataDict)