Python Return Max Dictionary Entry
You can use this as a method to select only the maximum values:
dict1 = {"John": 5, "Jim": 2, "Zack": 1, "Brian": 5, "Tim": 3}
max1 = max(dict1.values())
dict2 = dict(filter(lambda elem: elem[1] == max1, dict1.items()))
print(dict2)
Basically, it first finds out the maximum value out of the dictionary and then filters out the entries which match with the highest value.