accessing UI elements from python worker thread

also cleaning up some dumb python imports
(file structure remains vile)