To fix issue #100 convert dict comprehension to generator expression for 2.6

to fix issue #100