Fix to work with Python 2.6

Can only do dictionary comprehensions in 2.7