Any persons convicted in the police courts of said city for a violation of the ordinances or bylaws thereof, shall have the right to appeal to the mayor and council of said city if said mayor and council shall see fit by ordinance to provide for such appeal.