This post explains how to install Python 3 in a Mac OS X, both Mavericks and Yosemite. Check this post if you want to clean install Python 2.7. You can also install both! 🙂
It also shows how to use virtualenv and virtualenvwrapper with Python 3. Don’t miss it!