minor edits at C++ layer to fix compilation errors
(#524)
update wrapping at Python layer to use new interface
(#524)