why not just write directly 

     ar = np.array([[1, 0, 1], [1, 0, 1]], np.uint8)

?