update snippets for pymotw work