`isinstance(self.data, six.text_type)` would do the same thing here