Haha ya my ball Python "yawns" sometimes. He usually does it after he eats to realign his jaws but I have seen him do it at other times and it basically just seems random. As long as his mouth seemed clear of bubbles or mucous I think you are probably good to go.
Andrew