Fix for Python 2.6.
Test on Python 2.6 too.