First it is best the use sf as variable name for the shapefile and shp for the shape that is in the shapefile.
And you can use Utils.Ogr2Ogr() to convert a shapefile to mif.
Paul
And you can use Utils.Ogr2Ogr() to convert a shapefile to mif.
Paul