Fix basestring error with Python 3.x