Fix for Python2.6

Make it supports Python 2.6