. . "o All courts shall, in addition to any fine or other penalty, assess $3 as a court cost against every person convicted for violation of state penal or criminal statute or convicted for violation of a municipal or county ordinance" . .