I've changed the script to use `PYTHONPATH` instead of `cd`. Unfortunately, `write_exec_script`/`write_env_script` still won't work, because the script needs to invoke `python`.