Python Dfs Implementation Using Python For Automation