Two new python snippets