update python django snippets to not use render_to