tools:modified getdependencies.py