Use six.text_type to replace unicode

unicode only exists in Python 2. Use six.text_type to make code
Python 3 comaptible. See http://pythonhosted.org/six/#six.text_type

Part of blueprint keystone-py3kcompat

Change-Id: I044036708b1fc6190647abce699e6898b274d487