There a several available tools to creating a Python interface to a C or C++ library.
Sip was developed to create PyQt.
Shiboken was developed to create PySide.