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