Update python bindings for unique_ptrs.