extract duplicate values from a dictionary,"r = dict((v, k) for k, v in d.items())"