The governing body of any municipality may remove or raze any hazardous building or remove or correct any hazardous condition of real estate upon obtaining the consent in writing of all owners of record, occupying tenants, and all lienholders of record; the cost shall be charged against the real estate as provided in section 463.21, except the governing body may provide that the cost so assessed may be paid in not to exceed five equal annual installments with interest thereon, at eight percent per annum.