You should have the Python.h header available on your system. For example, for Python 3.6, install the python3.6-dev package on Debian/Ubuntu systems. Using the ...
Using libmodulemd from Python is possible thanks to the gobject-introspection project. To use libmodulemd from Python, include the following at the top of your sources. Install the python2-libmodulemd ...