pycallbk Just a simple example of how to call python functions from a C program. compile with make hacking on it Change the function report_remote_reference inside progress.py to do whatever you want with the string.