Dfs Implementation In Python Program