Section 4. The fees of the clerks of the supreme judicial court for the commonwealth and for each of the counties and for the appeals court shall be as follows:
for the entry of a complaint, petition, appeal or other action, $300;
for the filing of an application for further appellate review, $270; and
for the issuance of an injunction or restraining order, $90.
Notwithstanding the foregoing, no fee shall be paid for the entry of an appeal, petition, complaint or other action and for the filing of an application for further appellate review by the commonwealth and no fee shall be charged to the commonwealth for the issuance of an injunction or restraining order, but if the commonwealth prevails in the action, the fees shall be taxed against the other party.