unicode fix
Type unicode only defined in Python 2, not in Python 3