That has happened to me before as well. What I do is after the rat/mouse is thawed I will zap the head of the prey with a hair dryer for a couple of minutes and then present it to my ball python.......perfect strike every time! Those holes in the mouth are heat receptors and that is how they detect heat.

Good Luck!