Flip Dictionary Python
dict((v, k) for k, v in my_map.items())
Kellan Butler
dict((v, k) for k, v in my_map.items())