Python program to print nxn checkerboard using numpy