Upgrade Python 2.6 to Python 2.7 on Centos 6.6
sudo yum update # Update yum
sudo yum install centos-release-scl # Install SCL
sudo yum install python27 # Install Python 2.7
To use it, you essentially spawn another shell (or script) while enabling the newer version of Python: