Depth First Search Python