Relax.... asking the questions I asked has helped to answer your initial question. Just chill
I did see the light bulb and since now I know that it is your only source of heat, coupled with the thermometer at the top of the tank, I'd say your snake is trying to get warm.
You're measuring the temps at the top- heat rises- the light is off- and the snake has no belly heat.
Here's what I will suggest and you may take it as criticism though I mean it as helpfulness:
1- please provide belly heat for your snake; they need it for good digestion.
2- please control that source of heat with a rheostat or a thermostat.
3- please provide an accurate measure of temps and humidity by putting a digital display thermometer/hygrometer in the bottom of the tank.
4- please provide the snake with 2 identical hides; one on the cool side and one on the hot side.
It is my experience that once you have upgraded your husbandry skills, the snake will no longer be 'trying to escape'.