Preparation for making curses interface work in Python.