Tried to fix the html in form submission, minor PEP-8 Fixes.
More PEP-8 fixes
Fixed the html escaping issue.