You learn something new every day
And today's lesson was...
basestring. The base class for str and unicode. Can be used with isinstance to test if you either str or unicode, rather than hacking around. It was definitely news to me, anyway...