pygobject3: fix install for osx-included python

PYTHON env var would not be set for python2 if python2 was not installed
from homebrew

Closes #35220.

Signed-off-by: Tim D. Smith <git@tim-smith.us>