That's a defensive strike. He doesn't want the rat and was trying to get it to go away. This is why I have boas and retics, if one of my picky live-feeder-only ball pythons isn't hungry there's another hungry snake available who will take it.
It looked like he was stalking it though. Wish I could get the video to attach.
I think this is it.