add arguments support for url_for and redirect. fix py3 tests, add template <elif> statement test.