python: edit example