Update python snippets