Actually write out a setup.py, and exit 0 if the write fails