[Python 3] Fixes some string issues.