For the Python 3.8 default switch.
termtosvg is a Unix terminal recorder written in Python that renders your command line sessions as standalone SVG animations.