Вот поиск вместе с определением пути.
def find_keys(var, key, path=[]):
if isinstance(var, dict):
for k, v in var.items():
if k == key:
yield {'path': path+[k], 'value': v}
if isinstance(v, (dict, list)):
yield from find_keys(v, key, path+[k])
elif isinstance(var, list):
for k, v in enumerate(var):
yield from find_keys(v, key, path+[k])
d = {'d': {'a': [{'g': 3}, {'j': 5}]}, 'x':[[{'y': 7}, {'z': 8}, 2, [{'j': 0}]]]}
print(*[v for v in find_keys(d, 'j')], sep='\n')
{'path': ['d', 'a', 1, 'j'], 'value': 5}
{'path': ['x', 0, 3, 0, 'j'], 'value': 0}