Python 2.6 compatibility

As there is only one line that prohibits using python 2.6 here a small change that restores compatibility.

Reasons why dictionary comprehensions are only added in Python 2.7 see https://docs.python.org/3.5/whatsnew/2.7.html#other-language-changes

The dictionary comprehension has been replaced with a for loop.