python_dependency: cleanup and fix build env.

* Only set PYTHONPATH for Python 2.
* Set the Python binary for superenv.

References #24842.
Closes #26216.
Closes #26218.