flask render_template accept dict