I've heard most people give their snake a bath in lukewarm water when this occurs. I'm not quite sure if they do it a few times or just once... hope that helps though.
Oh, and I forgot to mention that some people say that your ball python can get backed up? Not sure, I've heard it's a myth.