python 2.6 syntax for CentOS 6 compatibility