I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes,
One way to call C libraries from Python is to use ctypes:
>>> from ctypes import * >>> windll.user32.MessageBoxA(None, "Hello world", "ctypes", 0);