html = html + template.render(templatepath + 'outputpage_js.html', {})
html = (html + 
    '<table width="500" class=\'out\' border="1" data-dynamic="%s">' % json
    .dumps(your_generated_data_dict))
self.response.out.write(html)
Отправка данных из Python в Javascript (JSON)