Sudoku Array checker in Python