2to3 . --fix input -wpn 2to3 . --fix raw_input -wpn Py2 input is the new Py3 input wrapped in eval tags. The new input is the old raw_input. This lets you have the old behavior. Mechanical. Ref: PEP 3111 https://peps.python.org/pep-3111/
2to3 . --fix filter -wpn Py2 filter was a list, now filter is an iterator. This lets you have the old behavior. Mechanical. Ref: https://www.artima.com/weblogs/viewpost.jsp?thread=208549
2to3 . --fix print -wn Essentially, print is a function instead of statement. Ref: PEP 3105 https://peps.python.org/pep-3105/