Ensure the parent process is python, not bash