Python For Row In Dfs Cycle