python: add snippets