(a) To secure costs of sewer, sidewalk, street, alley, recreational path, way, or street curbing assessed against abutting or other real estate and the owners thereof, and costs of repair of any of these, said city shall have a lien against such abutting real estate and the owners thereof, or against the real estate and the owners thereof for the primary benefit of which such improvement is made, from the date of adoption of the ordinance providing for the work and assessing the cost, which lien shall be prior and superior to all other except state, county and city taxes, and said city shall have the right to sell and transfer all such liens and claims to third parties, who shall be protected by the same lien and rights as the city has and holds against such property and the owners thereof. (b) Nothing in this section shall be construed to deprive the property owner of the right of paying for said improvement in cash at the completion of the work if he desires to do so.