changes to run.py. removed debug mode