Some more python snippets