Update write_project_headers.py

Edited for compatibility with Python 2.6.
Update run_do_script.py

Edited for compatibility with Python 2.6.
Merge pull request #4 from jahaller/waf

Python 2.6 support in write_project_paths and run_do_script