The word translated as "serpent" means "snake," but it is also a kind of fish. The "serpent" was used by Jesus both as a metaphor for wisdom (Mat.10:16) and, of course, as evil cunning.
"Generation" or "brood" would probably be better translated as "offspring" or "the work." The word "vipers" could mean "the treacherous." See Matt 12:34 for an earlier formulation of this same idea.