Fixed most of the issues with Unicode in python 3