It's unfortunate, but with a good feeder, that does happen from time to time. I see it with kingsnakes and/or bullsnakes a lot more often than ball pythons, but sometimes they just get so excited about eating that they forget to finish constricting.
Not much you can really do for the rat, unfortunately, but hey - what a great feeding response on that ball python!
-Jen