add python dfs version