Its true that homosexuality is a European colonial import but its also true that African people have agency and can think for themselves. They've resisted a lot of other European colonial influences or shed them in the wake of their independence movements. Why not their anti-homosexual beliefs?