It shall be the duty of the mayor, through the proper departments to enforce this chapter.
The owner or agent of a building or premises in or upon which a violation of any provision of this chapter has been committed or shall exist; or the lessee or tenant of an entire building or entire premises in or upon which violation has been committed or shall exist; or the owner, agent, lessee or tenant of any part of the building or premises in or upon which such violation has been committed or shall exist; or the agent, architect, building contractor or any other person who commits, takes part or assists in any violation or who maintains any building or premises in or upon which such violation shall exist shall be guilty of a misdemeanor punishable by a fine of not less than ten dollars and not more than five hundred dollars for each day that such violation continues, or by imprisonment for ten days for each day such violation shall continue, or by both such fine and imprisonment, in the discretion of the court.
Any such person who, having been served with an order to remove any such violation, shall fail to comply with the order within ten days after such service, or shall continue to violate any provision of the regulations made under authority of this chapter in the respect named in such order, shall also be subject to a civil penalty of five hundred dollars.