adds get function to snippets.py
snippets.py return an error message for names not found in file