Update generators.py

Correcting minor mistake in dict creation.