removing use of basestring for py3 compatibility