Fixed most of the issues with Unicode in python 2.7