Updated python snippets.