support for python 2.6

Supports python 2.6 which is installed on hadoop