Interestingly there is a CFFI module in Python too. Maybe they got the idea from Lisp.
Re:Answers from 2017 Common Lisp experts
by flavio81 on Wednesday August 23, 2017 @12:37AM
(#15078556)
Um, i'm not sure. Python was designed with C compatibility as a main feature since the start, anyways.
The cffi module in python came from pypy (which broke the cpython c api) - but both the python ctypes module and cffi use libffi:
https://www.quicklisp.org/beta/UNOFFICIAL/docs/cffi/doc/Intr...
Maybe with the help of cl-autowrap:
https://github.com/rpav/cl-autowrap/blob/master/README.md
There are others... :
http://www.cliki.net/FFI