OK, the updated script should work with Python 2/3 out of the box.
There is a problem with the settings for the position of the window if python3 loads python2's settings file and vice versa, but everything else works.
Even a command-line interface is added.. (never made one before)