Dfs Searching Algorithm In Python