Python3: Don't refer to basestring