Section 34B. In case any person subject to section thirty-four A shall refuse or neglect for thirty days after such request to furnish such a written transcript, the student or former student requesting the same or, if a minor, his guardian or next friend, may present to the superior court for the county within which such person so subject resides or such institution is located, or for the county of Suffolk, a petition addressed to said court and praying for such relief as it may deem proper in the circumstances; and thereupon such court shall have jurisdiction of such petition and may issue such orders relative thereto as it may deem proper, and any failure or refusal to obey any such order may be treated by the court as a contempt thereof. Upon any such petition the court may award costs and reasonable attorney's fees to the petitioner.