Compat for Python 2.6.

No dictionary comprehension in Python 2.6.