Add support for python 2.6.

pypy and Python 3.x will be difficult due to differences in the codec library.
for py2.6, we need to use unittest2, the backported unittest with all the features.  otherwise, things like setUpClass won't work