Update dynamic-close.py