Python curses dialog window