Making a program for solving sudoku using python