Added the python snippets code