The dict comprehension would be absolutely lovely, yes. Unfortunately, we're on Python 2.6 :p