for i in range(len(list(myDict.values()))):
    for j in range(len(list(myDict.values())[i])):
        match = re.search('Mary', list(myDict.values())[i][j])
if match:
    print(match.group())
print(list(myDict.keys())[i])
print(list(myDict.values())[i][j])
How to search if dictionary value contains certain string with Python