python2 compatibility

In trying to get errbot running locally, I ran into some issues with getting it going with python 2.7.3.

I'm sending in my current set of changes in using six to get that going.

Since I haven't been able to get the text backend working locally (submit an issue shortly), there may be a few things missed.