Like this?- https://lh3.googleusercontent.com/-n...%252021.53.jpg

I have no idea. But that is the classic tail stance of a snake about to poop. He might have a small blockage. How often is he doing this?
PS Snakes do have one opening, (as do birds and lizards) called a cloaca. their sex organs and anus and vent is internal.