 John Cleese (qv) was a big fan of the show and wrote much of the  episode he appeared in, including the pirate sketch, his scene with  Gonzo ("the ugly, disgusting one who catches cannonballs") and the  finale.