fix #199: python 2.6 compatibility issue -- dict comprehension was introduced in 2.7