fix for python 2.6

python 2.6 has no dict comprehension
Merge pull request #20 from gmoro/python_2_6

fix for python 2.6