Provide him with plenty of water. I have gotten ball pythons especially young ones from shows that have had a hard lump inside near the cloaca. It always has turned out to be hard urates from dehydration. Giving him a soak may help him to pass it.