Small fixes/improvements:

- Update default value for template_vars param in common render function

- Improve/streamline form success check

- Add more pep8-iness