This is very simple library which delegates calls from Python to C++ routines. It uses C Python API: http://docs.python.org/2/extending/extending.html.
It is very low-level and simple api that delegates functions almost one-to-one.
As it uses C/C++ Python api the names of the routines, returned values etc. are very cumbersome.
It is advisible to use pydmga to access C++ dmga library from Python code, as pydmga is high-level wrap on the dmga2py interface.
In some structures in pydmga you will notice reference to a handle to C++ structure. It is simply a pointer to a structure encoded as Python pointer type Py_ssize_t.