Minor changes to gui_sample.py