The city council shall have power to acquire by purchase, lease, donation, grant or condemnation such private property as may be necessary for public buildings, streets, or grounds for the use of the city and all other necessary purposes in manner as herein provided and as provided by law. The city council may by a two-thirds vote of all members of the council sell, convey and dispose of such real estate as the city may own and which is not needed for municipal purposes.