(a) Any person who shall violate or fail to comply with any of the provisions of the Standard and International Building Codes adopted herein, or the inspections required herein, shall, for each such failure or violation or noncompliance, be punished by a fine not to exceed $500.00, and court cost, or imprisonment for a term not to exceed 60 days or be assigned community service for a term not to exceed 60 days. Each day any violation or failure to comply with this article shall constitute a separate offense and be subject to the above for each day. (b) The infliction of a penalty under the provisions of this section shall not prevent the revocation of any permit or license or the taking of other punitive or remedial action. Flagrant and repeated violations, or acts or failures to act that constitute a safety or fire hazard shall authorize immediate revocation of any permit or license for the structure involved.