3. Notwithstanding the provisions of section thirty-three of article two of the private housing finance law, the real property in a municipal project sold or leased as provided in subdivision one of this section, when the transfer thereunder becomes effective, shall be exempt from local and municipal taxes, other than assessments for local improvements, to such extent as may be granted by the local legislative body of any municipality in which such project is located; provided, however, that any corporation to which such project is so sold or leased shall pay to each municipality in which a project is located, with respect to each such project, local and municipal taxes in amounts not less than the sum or sums contracted to be paid by the authority as a payment in lieu of taxes with respect to such project and which the authority would be obligated to pay to the municipality had it not sold or leased the project to such a corporation. The tax exemption shall operate and continue so long as capital loans of the corporation to which such project shall have been sold or leased are outstanding, but in no event shall such exemption for a municipal project located outside a city of one million or more persons continue for a period of more than thirty years, commencing in each instance from the date on which the benefits of such exemption became available to and effective for such corporation. Notes, bonds, mortgages and other obligations of such a corporation are declared to be issued for a public purpose and to be public instrumentalities and, together with interest thereon, shall be exempt from tax.