Python Dfs Implementation Using Python For Front End