Just wanted to add on top of the great link and advice given here that a 4 month old, likely hatchling sized ball python, can not go months without eating. Not eating for months is not at all normal for any ball python under ~300g. It will simply die.
For hatchlings not eating, it is 99.9% of the time a husbandry issue/incorrect setup.