This is a python script for Nuke to retime roto shapes. It supports shapes only, not strokes, not opensplines.
It works by looping through each roto node, each shape in the roto node, and each point on the shape. It creates an expression on each point referencing a frame_lookup
knob. Put a retime curve on this knob and your shapes will be retimed.