Use "unicode" type only in Python 2

the "unicode" does not exist anymore in Python > 2, so I suggest using str
instead.