You need to tell what youve read, what youve tried, where stuck. Yes the extending and embedding stuff http://docs.python.org/2/extending/ and
http://docs.python.org/2/c-api/index.html is more difficult than much other than other python docs.
That is intrinsic to the problem -- you are not in the python world but the C world and C is a much harder and headachey-er than python. And building the python infrastructure on top of that is still harder.
If you have to use it, you really need to get the data-structure invariants right: eg http://docs.python.org/2/c-api/intro.html#objects-types-and-reference-counts.
However as Terry suggests, using something like Cython to avoid this should always be first explored. Heres a list
- 'Classic' extending/embedding
- SCXX
- PyCXX
- Boost
- Ctypes
- Swig
- Sip
- cython
Explore in reverse order!