Fix for dict comprehension in Python 2.6.5