Except as provided in the preceding paragraph, any violations of sections one hundred and ninety-six and one hundred and ninety-seven may be treated by any party as a violation of the state sanitary code and all procedures and remedies applicable to such violations of said sanitary code shall be available to correct, deter or punish violations of said sections. In any action in which a tenant is withholding rent due to lead paint and as a result of said action the landlord is required to abate, the judge, unless he finds that the landlord did not act in good faith shall order that any amounts that would be awarded to the tenant pursuant to a finding that the value of the housing was reduced by the violation of the lead law be applied to the costs of abatement; provided, however, that any amounts awarded to the tenant pursuant to a finding of any other violation of the sanitary code or any other law shall be retained by the tenant. The district, housing and superior courts shall have jurisdiction to enforce the provisions of said sections to the same extent that said courts have jurisdiction to enforce said sanitary code.
All local boards of health or other code enforcement agencies, including in the city of Boston the commissioner of housing inspection shall enforce sections one hundred and ninety-four A, one hundred and ninety-six and section one hundred and ninety-seven in the same manner and with the same authority as they may enforce the sanitary code. The director shall provide by regulation for the implementation by local boards of health, code enforcement agencies and housing inspection agencies of the provisions of this section and the periodic reporting to him of the results of all actions undertaken hereunder by said boards and agencies.