udpate py

update python snippets