Fixing Python2.6 compatibility issue.
Python2.6 does not supports dict comprehension