Update griffin.py

save function initial code