Just curious: Any particular reason you chose to do it this way rather than ```isinstance(body, six.text_type)```?

BTW, isinstance is slightly faster (but only by about 20 ns).