Smart pointers in python bindings.