Implementing a sudoku-solver in Python