add idea: write ncurses in python for debug