Add main and foreachfile snippets to python.snippets