Finally convert the scripts to Python 3 / ST3