TypeErrrors with np.int32