qvec, qmat, innermodel python API