ID DFS in Python.