add close.py