The mayor of a city of the second class shall have power to remit fines and forfeitures and to grant reprieves and pardons for all offenses arising under the ordinances of the city.