Bug was introduced when you put in the double quotes in the HTML to specify form values -- Python closed quotes early and got confused.