Final Version of Gui py File