Would it make more sense for `six.text_type` here?  In this, the type will be different between versions of Python -- however, what you're doing here does introduce no change in behavior, which might be deliberate...