Fix to #86, Nested For Loop in else

This definitely needs close review by @mitsuhiko, modifies python generated by Jinja2.