Whole new approach. Dropped complete re-write effort for Ctypes wrapper. User must generate their own shared library.
some additional fixes in comments