Python script to solve Sudoku puzzles