(1) Whenever a Magistrate of the second or third class, having jurisdiction, is of opinion after hearing the evidence for the prosecution and the accused, that the accused is guilty, and that he ought to receive a punishment different in kind from, or more severe than, that which such Magistrate is empowered to inflict, or that he ought to be r...