While trying to work out an appropriate fix for my problems with sgmllib I decided to try Python2.2, at which point I could start using cgitb. Unfortunately cgitb has a problem when some of the data it outputs includes HTML, since it does not escape the appropriate bits and so the browser gets very upset. Ken Causey