[boost] How to make a soft copy of a temporary Python object inside C++