Legacy code for Centos and RHEL 6.x python 2.6.6

Just change the syntax to be compliant with the python 2.6.6 syntax.