added foo_template.tpl and main.py