how to create a menu and submenus in python curses?,curses.doupdate()