Update generator.py

Trying something different to get rid of my tumblr problem.