removed dict comprehension to support python 2.6

Dict comprehension isn't supported in 2.6, so I switched them out to be more compatible.