python snippets test