Modify Python version check
Apply 3to2 -x str
Manual fix for Python 2