Section 13. If the supreme judicial or superior court finds that a party to an action or proceeding pending therein cannot, by reason of local prejudice or other cause, have an impartial trial in the county where the action or proceeding was commenced, it may, upon the application of either party, order it to be removed for trial to another county. Upon the entry of such order, the clerk of the court in which the action or proceeding is pending shall forthwith transmit all the papers in the case and a certified copy of said order to the clerk of the court for the county to which it has been ordered to be removed. The clerk who receives such papers and order shall forthwith enter them on his docket, and the case shall thereupon proceed as if it had been originally commenced in the county to which it has been removed.