two new python snippets