It's kind of a long story, but for Python2/Python3 compatibility, we have to use `six.text_type` rather than `str`.