Updating Python snippets.