curses extending with python