remove dict comprehensive for python2.6 compatibility