moved to realpath to support symlinking main.py