The taxes levied by this chapter shall not apply to any organization described in 26 U.S.C. §501(a), any county, municipality, municipal corporation, or the State of Alabama, or any corporation or association owned solely by counties, municipalities, or the State of Alabama, any community chest, fund, or foundation, or any entity organized and operated exclusively for religious purposes, any homeowners association, any political party, political action committee, political campaign committee, or any agricultural cooperative.