Add support for python 2.6.

pypy and Python 3.x will be difficult due to differences in the codec library.
strop not supported in pypy.  I could revert this change since pypy has other problems, but I think the change is actually more readable