Sometimes males go into fasting cycles because they want to breed. Although, the housing conditions in this case are far from being appropriate for a ball python. Humidity is vital for the health and well being of your snake. Lack of humidity will only make his life miserable. Heat lamps basically make your terrarium an arid desert, and not the environment these animals come from. An undertank heat pad would be a far better choice but it is important to know an undertank heat pad can and will burn your snake. I would recommend having a good amount of substrate. Even a piece of fleece or terrarium turf can help ensure that you will not burn your snake. MIST your substrate at least weekly, and thats without the use of a heat lamp. With a heat lamp it's almost impossible to maintain the proper humidity. Please make these necessary changes immediately, for the sake of your snake. He will be far happier.