We'd just need to change this to six.text_type() here I believe.