Some examples of how to generate PES files.
test_straight.py generates a test of running stitches using pyembroidery.
gc.py outputs an SVG file. The SVG file is then opened in inkscape, and the inkstitch extension is run to generate the PES file.