For this case, I'm not exaggerating when I say you would probably have an easier time generating the meshes yourself in python and something like the trimesh library to load the vertices into.