How do you heat the cage? Make sure there are no 'hot rocks', that any lights are outside of the cage and not accessable by the snake, and that undertank heaters are regulated by a rheostat or thermostat.

Is the substrate dry or damp? Damp substrate can lead to a variety of infections. The snake should be taken to a vet for a diagnosis, and treatment of the problem.