i delete default python installation from mountain lion and install python 2.3 via brew.But i can't use sourcetree again.python seems work ok with command line.
Edit:i mistyped 2.3 here i actually install 2.7.3 via brew but it's okay.i fix this problem via removing PATH variable from .bash_profile. (PATH=${PATH}:/usr/local/share/python)