Adding deep pointers to python wrapper.