cleanup on_cd.py