Ok wow I watched 2 min of that and I just can't watch anymore. There's something defiantly going on. So I've never seen anything like that at all in my life and it's not normal nor is it constipation. So let's try and figure out what's going on. Meanwhile you need to get him to a vet. And if you have other snakes quarantine him asap.
How long has this been going on?
How long have you had him?
What's the temps in the cage? Hot
And coolside.
What are the temperatures controlled by?
How are you measuring the temperatures?
Does he still do that If taken out of the cage and put into a non heated enclosure and left alone for awhile?
Does he do that all the time, or will he calm down for a bit and start up again?
Has he been losing weight? And have you been weighing him regularly?
What has his feeding schedule been like and what has he been eating?
Have you or him come in contact with any other snakes mainly boas or other pythons in the last 30 days? In anyway, like did you touch someones ball or boa and go home and feed, touch, clean, anything?

I know this is alot of questions and they may not seem relevant but it could help everyone figure out what is going on with that poor baby. So if you could answer them it may help us give you some ideas on what going on. But without a vet we won't be able to diagnose him.

Morgan