Python-Console-Tools is a project mainly written in C and PYTHON, it's free.
Experiments in automatic console interfaces for Python
w00t.