best way to structure a tkinter application,root.mainloop()