Remove dict comprehensions for 2.6 compatibility

Tested in 2.6, 2.7, and 3.4. And by "tested", I mean, "lumi-upload seems to work". However, there's still a problem in ftfy in 2.6.