update python

update python snippets