Python Dfs Implementation Using Stackcp