Update cookbook.py