Python sudoku solver code