Dfs Implementation In Python Using Stack