Fixed Python 2.6 compatibility: 1

Not using a generator with dictionary