Use six.text_type instead of unicode

`unicode` is Python 2 only.