Python 2.6 compatibility

avoid a dict comprehension for py2.6 compatibility