I have a ball python something like that. However, if your snake is getting worse than better, I would look for causes.
Hows the temps and humidity?
Does the snake have a hide?
How often are you feeding the snake?
Is there anything in the house that could be causing this? Maybe a dog or cat that comes around the cage? Maybe a scent coming from something?
Something to think about, do you have an appropriate day/night cycle?
Do you keep water in the cage all the time?
What kind of substrate are you using?
Is the cage too big or too small?
These are few things I can think of that could cause this behavior.
Good Luck!
Jim Smith