Update version_generator.py for Python 3

Simple fix.