Minor twea to main.py to write cprofile to output dir.