Shared Ptr Empty Function Coding In Python