redo pynserver with tkinter