Fix Unicode not defined error in python 3

Closes #29