def invert_hash(h):
    ih = {}

    for key,value in h.iteritems():
        if ih not in value:
            ih[value] = []
        ih[value].append(key)

    return ih
dataset/ETHPy150Open gyim/stupidgit/stupidgit_gui/util.py/invert_hash/swapped operands of `not in`