Updated snippets.py

Final version of snippets.py