Add Python 2.6 support
Fix for Python 3