I don't think that's "sure" at all. For one thing, only Python code directly calling Python has that option in the first place, often there is another layer of indirection, e.g., Python code which executes a shell script, which itself invokes Python, etc.
IME it is common to see a process tree with multiple invocations of Python in a ancestor relationship with other processes in between.