Polymers modified by chemical after-treatment {derived from polycarboxylic acids and polyhydroxy compounds}