py3 breakage on basestring