I've had this happen to me years ago when I put a hide that was meant for a fishtank in for my ball python cause I thought it looked cool. she wound up finding a little crevice to slither into. I too thought she was stuck and the more I played around with her trying to get her to come out the deeper she went in. she was in there for about a week and one day came home and she was in a different hide and I took the other one out. just leave him alone and most likely he'll come out on his own.