Section 160. A railroad corporation which violates any provision of sections one hundred and fifty-five, one hundred and fifty-seven, one hundred and fifty-eight and one hundred and fifty-nine, shall forfeit one hundred dollars, to be recovered in an action of tort brought in the name and for the use of the commonwealth by the attorney general or the district attorney for the district where the offence was committed.