Use an object to push his head down a bit before entering the enclosure then pick him up. I use a paper towel roll. This just tells them a food item is not entering the enclosure. It is actually a terrific thing when a ball python is a good feeder, especially a male.