Basestring issue with python 3.3