pythonic way to associate list elements with their indices,"d = dict((y, x) for x, y in enumerate(t))"