python_dfs_randomized