Looks like burn to me, the only scale rot I've seen was slightly orange. Luckily, it looks like your ball python is close to shed, it'll help but it won't cure it. I've heard for burns neosporin helps, but a certain kind shouldn't be used. I don't have much experience with burns or scale rot. DEFINITELY go to a vet! It looks bad, and good luck.