For any and every violation of the provisions of this chapter, the owner, general agent or contractor of a building or premises where such violation has been committed or shall exist, and the lessee or tenant of an entire building or entire premises where such violation has been committed or shall exist, and the owner, general agent or contractor, lessee or tenant of any part of a building or premises in which part such violation has been committed or shall exist, and the general agent, architect, builder, contractor or any other person who commits, takes part or assists in such violation or who maintains any building or premises in which any such violation shall exist, shall, for each and every violation, and for each and every day that such violation continues, be punished by a fine not exceeding $500 or by imprisonment in the county jail not exceeding 90 days, or be punished by both such fine and imprisonment, in the discretion of the presiding Judge.