Use six to determine the proper text types, unicode no longer exists in python 3