invest-applet: Port to Python 3