Modified main.py to execute from any directory