Code in python for solving Sudoku puzzle