Do not put hemarhoid cream on it.
If there is tissue protruding from the snake's vent, it needs to be seen by a vet immediately.
If it's just a large piece of stool or urate that is stuck, soaking may help him to pass it. Use lukewarm water that is no deeper than half your snake's width, for an hour or so.