Polymer biosynthesis and biotransformations