Importing C libraries into Python using ctypes library
For more about integrating C code into python using both ctypes and cython, have a look at https://minimatech.org/importing-c-code-into-python-1/ and https://minimatech.org/importing-c-code-into-python-2/