That is a dangerous set up! Your snake will end up getting a nasty burn or worse, it could be killed. Move that lamp outside the enclosure immediately.
What are your temps, hot side and cold side? Humidity? Are you using an under tank heat mat and if so is it regulated by a thermostat?
Your husbandry must be corrected first!