functional pythonscript to solve and generate sudokus