Use six.text_type instead of unicode