Python sudoku solver with backtrack