Revert 'Make generate-project.py compatible with Python3.'