I've recently bought a ball python and I noticed that it has been doing these head twists when I'm handling it and also when it's alone in its cage. I was wondering if this condition is serious and possibly fatal for the ball python.

Here's a video of the odd behavior.
https://drive.google.com/file/d/1gLJ...ew?usp=sharing

It does this very often and sometimes the twists are more violent and fast.
Any help will be greatly appreciated!