fix run.py and directories