invest-applet: Remove unused imports

Remove all imports that are not actually used, and replace
star imports with proper enumerations to keep the namespace
clean (so that tools like PyFlakes can work).
invest-applet: Remove unused code
invest-applet: Fix some undefined variables in quotes.py