Update directoryscript.py