Updating python snippets