t14: reformat edit page and clean code to pep8.