She's flicking around to smell. You're warm and she's being curious. The reason she pulls her head back is because you've startled her. As they get older, many snakes get better at holding on which would explain the firmer grip. Babies generally don't have as good a response to hanging on so it seems weaker.
If she's getting more jumpy and pulling away, then she's getting tired of being out/messed with.
With most snakes, if you handle them regularly, they will get used to it. Personally, I handle mine every day and it allows me to get to know their personalities better. I can tell if they're having an off day or if they are getting hungry. You'll see a difference in her behavior when that happens such as not wanting to stay near you or being extra jumpy. Just watch her and handle her plenty and it won't take long before you know what to look for with her.![]()