The humor is essentially dark for a cartoon and sophisticated. But at the same time being a cartoon gives the writers more freedom than in a normal sitcom. It always pushes the line that despite human failings the Simpsons are really decent people.
Gay writers now have both a sense of history and the fables that allows them to dwell in the realms of the ridiculous and at the same time talk seriously about things.