Add -g command line option to prog.py for gui