Section 74. A railroad corporation, which violates any provision of section seventy-one or seventy-two, shall be punished by a fine of ten thousand dollars; and any officer or agent of such railroad corporation who procures, aids or abets such corporation in any violation of said sections, and any partnership, trustee or other person who procures, aids or abets in any violation thereof, shall be punished by a fine of one thousand dollars or by imprisonment for not less than six months nor more than one year, or both.