Python GUI math cal