from collections import defaultdict
v = defaultdict(list)
for key, value in sorted(d.items()):
    v[value].append(key)
Grouping Python dictionary keys as a list and create a new dictionary with this list as a value