Python code for Sudoku Solver