TextMate
I found this page http://blog.macromates.com/2014/defining-a-path/ and I went in the preferences of TextMate, changing (or adding) the setting for PATH as in the following picture

After enabling shell escape and running the test file
\documentclass{article}
\begin{document}
\immediate\write18{echo $PATH>\jobname.path}
\end{document}
the .path file that's created shows
/usr/local/bin:/Library/TeX/texbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/<username>/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
However, hitting Command-R shows errors related to pythontex being passed the options
-interaction=nonstopmode -file-line-error
This is, in my opinion, a bug in the LaTeX bundle of TextMate.
If I remove the TS-program line and enable “Use latexmk” in the LaTeX bundle preferences, the correct pythontex call seems to be made.
TeXShop
If you're using the pythontex.engine script distributed with TeXShop, it sets
PATH=~/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/Library/TeX/texbin
It also has a commented out line
#PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/Library/TeX/texbin
and it's clear that both give preference to /usr/bin/python, that is the Apple distributed one (on my system it is version 2.7.5, because I'm still with 10.9.5 on this machine), unless, of course, you have Python in ~/anaconda/bin.
If you want to use the Python version coming with Homebrew or other independent software distribution, you need to modify the setting of PATH. If your Python is in /usr/local/bin, just comment the first setting of PATH and uncomment the second one, but moving /usr/local/bin earlier than /usr/bin.
The location of pythontex.engine should be in
~/Library/TeXShop/Engines
pythontexis passed-interaction=nonstopmodeas if it werepdflatex.