Fix unicode expected error in Python2.7