Removed use of dictionary comprehenstion

Pre python 2.7 doesn't have this