Update python.snippets

adding code encoding.