A certificate of occupancy, issued by the building inspector, is required in advance of the uses of occupancy of: A. Any lot or change in use thereof. B. A building hereinafter erected or a change in the use of an existing building. C. Any non-conforming use that is existing at the time of the enactment of this ordinance or an amendment hereto, or any non-conforming use that is changed, extended, altered or rebuilt thereafter.