Returns the dict given, but with the keys as values and the values as keys.
Definition at line 288 of file misc.py.