Updated gen.py to actually execute again and test_utf8_header to allow it

Testing Done:
Ran ./build-support/bin/publish_docs.sh -o

devpants goal test  tests/python/pants_test:test_utf8_header

Bugs closed: 241

Reviewed at https://rbcommons.com/s/twitter/r/542/