Have you been able to take this gut to the vet? Hopefully you have and are the path to treating your snake.
If not, you need to soak him/her in tepid water. After a few minutes of soaking in plain water, add betadine to the water (mix in enough until it looks to be the color of dark tea). Soaking in plain water first will allow it to drink if it wants to with out consuming the betadine. This will help clean the wounds and get the stuck shed off. Dry it off well, try to remove as much shed as possible and put some Neosporin (with out pain reliever in it) on to the wounds. Clean the tank well and only use paper towels for substrate. Remove any decorations to prevent the snake rubbing the wounds on anything. Make sure you use a few hides that are plastic on the warm end and cool end (easy to disinfect). Keep the tank warm, the substrate dry and clean, and your temps and humidity stable.
You also need to figure out what caused this and fix the problem ASAP. Like others said, do you have a heat rock or heat lamp where the snake can climb on it? Or an under tank heater with out a thermostat or rheostat?