Python Dfs Implementation Using Stack