Adds support for python2.6