Making dict comprehension work with py2.6