Get a plastic tub as a temporary cage and wash it thoroughly. Use newspaper as a substrate. Keep the cage dry. Give the snake a heat pad at about 85-90 deg.

If the condition does not improve immediately, see a vet.
-----
Mark