Keep handling it, if pooping makes you stop it will not get used to you and will use this mechanism as it knows it works. Snakes aren't smart but they do work out patterns. Pooping is better than biting in my book. Wear old clothes or an apron and handle it before you shower or bath. It will stop eventually once it knows it won't cause it to be put back.

Additionally as it gets bigger it will poop less often mine is 7 months only poops once every 2-3 weeks and produces urates once every 10-12 days. Also pay attention to its tail and cloaca if goes still and lifts the tip of its tail it usually means its about to pee/poo you will also see ripples move down it like its trying to move backwards. just put its back end in a container or old coffee mug and problem solved.