Any person who, by himself or his agent, fails to comply with the written order of a building inspector for the provision of additional exit facilities in a building, the repair or alteration of a building or the removal of a building or any portion thereof, shall be fined not less than two hundred nor more than one thousand dollars or imprisoned not more than six months, or both.