Dict comprehensions, avoid allocating lists

Good point; I couldn’t remember if dict comprehensions were present in 2.7