more readable code in the GUI.py

what do you think about this?