Support python 3 for unicode change