def inverseDict(d):
    """
	Returns a dictionay indexed by values {value_k:key_k}
	Parameters:
	-----------
		d : dictionary
	"""
    dt = {}
    for k, v in list(d.items()):
        if type(v) in (list, tuple):
            for i in v:
                dt[i] = k
        else:
            dt[v] = k
    return dt
