16:22 September 19, 2013

how to reverse a dict in python (sorta):

sum([[(value, key) for value in values] for key, values in foo.items()], [])

ignore the man behind the curtain