update scratch.py