An exo Terra night light 150 watt bulb at a distance of 12 inches is around 82 degrees. Your average 55 gallon is 13 inches tall.
Your bulb is going to be warmer and if it's not a night bulb it might stress your snake out as well with the bright light.
As long as there aren't any branches or items taller than 4" in there under the lamp then as a temporary measure it might be okay...unless it's the desert spotlight version of heat lamp which is far too strong. This will bake your ball python.
But you need to be measuring the temperature in there and making sure of that. The temperature charts that some brands up on there are a guideline, not always accurate.
I'm going to second the question of if you have a light dimmer or thermostat? Is this the only heat source? Ball pythons don't do as well with a basking heat and prefer belly heat. There's far too much info missing for anyone to tell you if the bulb is okay