Make generate-project.py compatible with Python3.
Merge pull request #1 from stefansundin/master

Python3 support