fix some python3 string issues