usage of std::shared_ptr
pysample.c: an extension function that operates on arrays.