appendClip and other methods use a shared_ptr reference
Using a reference of shared_ptr is not a good idea as it can mess with the ref counting and generate tricky errors.
Furthermore this create functions that are not compatible with Pybind.
I am not sure why it has been done like this? Especially since the function would work if we modified directly the micro graph instead of creating a clone.