adding a sanity check for contiguous memory layout in np2bz() (Python binding)