added cgitb.enable() to print python stack traces to the webpage (rather than no output or else http:500)