Fix PEP8 issues in ui/alttemplates and ui/controllers.