def getFromDict(dataDict, mapList):
    """
    Retrieves value from nested dict (dir_structure) using a list of keys

    https://stackoverflow.com/questions/14692690/access-nested-dictionary-items-via-a-list-of-keys
    """

    for k in mapList:
        dataDict = dataDict.get(k, None)
        if dataDict is None:
            break
    return dataDict