Use python's CFFI facility to call a c library from python.
This example runs on Centos and Ubuntu.
You might have to install python-devel to obtain the necessary header files.
If you're missing python cffi libaries run "pip install cffi"
To run the example: 1) make 2) python cffitesting.py