Bring in python3 compability

Python3 support with flask and other web technology seems to be pretty thorough. Don't see the point of sticking with python2 here.
Still some places in this file using the older string formatting syntax.