So I'm holding my new ball python, letting him kinda just explore and go where he wants, and all of a sudden I feel wetness soaking through my jeans. Surprised me at first until I saw the poop that followed and realized what was up. Let him finish of course, and put him back in his tank.

My question is, is this some kind of defense response? Or does it mean he's getting comfortable with me?

Or do I just need to keep a certain timeframe in mind after feeding to avoid another incident like this? (I think it was about 4 days after the first mouse he took since getting him)