PyGUI implementation