Male go of feeds for variety of reasons, fasting to catch up because they are being fed too often and or too much, sexual maturity, husbandry issues, and mainly because they are ball python and they are not the most voracious species.
I think here you definitely have sexual maturity involve, maybe even a little too much food.
The best you can do is make sure everything is on point husbandry wise and wait it out, depending on the size of your male a fast could last a long time.
Over the years I have kept my males in smaller enclosure during a certain time of the year so they continue to feed but than again those males are breeding which is why I need them to feed as breeding plus fasting could take it's tall very fast, for a pet that would not worry me at all but the option of downsizing could still be something I would look into as well.