Sudoku Backtracking Algorithm Python Template