Add an C wrapper which can be easily used with the Python ctypes API.
Initial ctypes wrapper.