Backtracking Algorithm Python Example Read