Fix for Python 2.6

Please fix the library to work with Python 2.6