In order to use c++2py tools the C-code must be rewritten to C++. In particular, instead of direct creation of Numpy arrays STL containers must be used.