Update python snippets.