Fix Python3 string issues