fixed encoding for python script