Can you make this a generator comprehension in a `dict()` call? dict comprehensions are only in Python 2.7+