Update python.snippets

adding code encoding.
Merge pull request #328 from hallaj/master

Update python.snippets