fix lack of basestring in python 3 using six