Sudoku generator in python