language/python: add helper methods for pth detection
keg: add python_pth_files_installed? helper
doctor: check for .pth support in Homebrew site-packages
caveats: recommend adding python site-packages with site.addsitedir

Closes #33364. Fixes #30844.