Changed dict-comprehension to support python2.6.

Fixes #6.