Implement Depth First Search In Python