The snakes burrow, and sooner or later will be touching the glass, and at the temps the glass was reaching, you would have a very badly burned snake.
If the substrate on the hot side is very thin, the temp of the glass and the temp of the top of the substrate wont differ very much.