moved GUI code to Python3