Update gui

Updates the gui so that it runs with python3.