Unique Ptr Lambda Python Functions For Automation