curses.py: initial commit