get dict value from path tuple