Simple example to import C modules from python.
To build the library you run the usual commands: python setup.py build python setup.py install
Maybe you need tu use the command: python setup.py build -c mingw32 (only if you have problems detecting the C compiler)
Some links: https://www.tutorialspoint.com/python/python_further_extensions.htm http://python3porting.com/cextensions.html