How to create a menu and submenus in Python curses?,curses.doupdate()