Use some more Pythonic constructs for generating the project files...