Implement Dfs Using Python