def RetrieveValue(Dictionary, IndexPath):
    """
    WARNING: This function is for internal use.
    Enter dictionary recursively using IndexPath and return leaf value.
    """
    if IndexPath == []:
        return Dictionary
    else:
        return RetrieveValue(Dictionary[IndexPath[0]], IndexPath[1:])