Replacing dict comprehensions for python 2.6 support

This fix was suggested by PyCharm. Py2.6 does not support dict comprehensions so for compatibility my IDE suggested to replace it with list comprehension :)