import stdnum.do.ncf as ncf ncf.check_dgii(ncf_number, rnc_number) the method check_dgii always returning None.