(a) No county, city, district, or other political subdivision or agency in this state shall so regulate, or shall levy upon insurers, or upon their agents and representatives as such, any such tax, license or fee; except that whenever a county, city, district or other political subdivision levies or imposes generally on a nondiscriminatory basis throughout the jurisdiction of the taxing authority