some python curses stuff for the server