The owner or agent of a building or premises where a violation of any provision of this chapter shall have been committed or shall exist, or the agent, architect, builder, contractor, or any other person who shall commit, take part in, or assist in any such violation, or who shall maintain any building or premises in which any violation of this chapter shall exist, shall be subject to the penalties set forth in this section.