Changes to python snippets