Fix basestring for py3k.