cleanup grab.py