Chemical reactions of poly(vinyl pyridine)s with epoxy compounds