imgs = s2c.list("path/to/input_directory", "dxf") for i in imgs: v = i.open() v.save(v.path, s2c.Vector.ExportType.DWG)