Sudoku Generator Algorithm Python