Implementing the python wrapper thanks to boost. Use more std::vector and std::array. The code is as efficient than the C one.
std::vector
std::array