I haven't heard of tail-wagging for food before - only mature BPs when they're "in the mood".
My best guess, judging from the nose-to-nose business and no striking, is he was one p*ssed off ball python. He probably had no interest in eating and just saw the rat as a threat. Did you hear any hissing?