Haha that's so cute! I never experienced it with my animals, and to the best of my knowledge it doesn't really mean anything but some snakes will do it when they get excited (I've seen some vids where the ball python will wag its tail when feeding) or worked up, almost like somebody who subconsciously bites their nails or something when they're anxious.