Tools: added debug messages to depend.py