My snake hasn't pooped in 2 months now, and I think he's due to poop any day now
One thing you can do is get an old shirt or some kind of a cloth, cut it into a long slice and tie it around your hand overnight. Keep doing that for few nights and that will scent the cloth with your smell. Then put it in the snakes hide and he should associate your smell with security. It really worked with me. If i took out my snake and put him on the ground then sat few feet away from him with my hands on the ground he would slither to me and onto my hands
This idea isn't mine tho. Credit goes to bearhart!