The whole bit is made all the funnier by knowing that all of the guards were just random extras who weren’t told what was going to happen, only that they weren’t allowed to laugh at any cost as they wouldn’t be paid if they did.
Peasants -- Monty Python and the Holy Grail humor
John Cleese~The Ministry of Silly Walks
Don't You Oppress Me!! -- Monty Python - Life of Brian