Major program.py clean-up; no more calls to chdir