Modified main.py to execute independent of CWD