Python Dfs Implementation Using Python Pip