Do isinstance(self.data, six.text_type) instead of isinstance(self.data, type(six.text_type())).

Signed-off-by: David Black <dblack@atlassian.com>