update directory.py