#1124 Adds support for Python2.6