I've been reading through the PEP, and I've been having trouble following the code in some parts. Eventually, I got it, but I really think that run_with_cgi() could use some heavy commenting. Perhaps the other code samples could, too.