Restore python 3 compatibility

Given the style of print used it looks like the python sudoku solver was written to run under both python 2 and 3. The recent change to use xrange while the right thing to do for python 2, breaks the compatibility with python 3. Fortunately this can be easily repaired without affecting the speed.