Removed debugging code from dependency_sort.py, added test code