In a 20g long that I have, I keep my lamp in the middle to make sure my ambient temperature stays where it needs to be. As others have said, a separate under-tank heater with another thermostat set to a lower temperature may be a good option if your lamp just won't do it for the cool side temp. Another thing to try is adding either aluminum foil or a towel to the top of your tank. This can help to keep both heat and humidity in.
Something good to note is that you shouldn't ever run a heater without a thermostat. This is because they'll just turn on and keep heating, and they can reach really high temperatures that may burn your snake. A thermostat will tell it to turn off when it reaches a certain temperature, then turn back on when it gets too cold.