python 3 doesn't have basestring anymore