reverse mapping of dictionary with python,"revdict = dict((v, k) for k, v in list(ref.items()))"