Fix invalid 0777 token in script_generator.py

Python 3 doesn't support numeric literals that start with 0.  I didn't even know this was a problem until I tried to install this with 3.4.