The under tank heater is probably much hotter than you think. Get a digital thermometer with a probe and stick the probe right on the glass under the substrate where the UTH is.

Chances are it will be above 100* which is too hot for a ball python. You need something to control the heat pad, preferably a reptile thermostat but a dimmer is a good temporary solution.