py2.6 compatibility, dict comprehension