Gui python2.6

Minor python changes to get the GUI working on Python 2.6