With the python shebang remaining as Python 2, switch the scripts to using Python 3. This also allows us to clean up some imports.
With the python shebang remaining as Python 2, switch the scripts to using Python 3. This also allows us to clean up some imports.