By defaults pybind handle just unique ptr see here. We need to expose to python functions that returns shared pointers.
see here