Post view, template and fix some PEP8