In my experience, the hairdryer trick only works if you get the rat really warm, all the way through.
Also, stay out of the picture as mich as possible, so the snake doesn’t focus on you as a predator, so it can focus on its prey.