fixing basestring error for python 3.4