PATH is moved to dispatch_errors.py file

PATH is moved to dispatch_errors.py file