Surgery needed
At this point, there is nothing else to do but to carefully cut open the snake and get the object out of it. But surgery always comes with a risk, especially if this surgery has to be done in the middle of the rainforest. But there is no other option available.