Homogenization of code, new API for creating a Python object from shared ptrs.