inv_map = {v: k for k, v in my_map.items()}
my_dict = dict(map(reversed, my_dict.items()))
inv_map = {v: k for k, v in my_map.iteritems()}