Like mentioned above, a ball python needs security. A happy healthy ball python always eats. I have rescued balls that were housed in aquariums, when I switched them to tubs they had zero issues eating.

If you refuse to switch to a tub (which is more than fine) provide at least 3 hides and as many fake plants as you can.