On 6 Jul 2013, at 21:31, Daniel Marcelino wrote:
It seems that the default python version is 3 […] Any idea to fix this?
You should replace /usr/bin/python with the system’s original version. Maybe you have it on a backup?
If you don’t have a backup, it may work to replace it with a custom build of python 2.7 (e.g. from Homebrew / MacPorts).
Worst case, use your OS X install disk / receovery partition to perform a re-install of system files.