Making an on open file to replace start.py