Loop Cut and Slide using Python not working
if you're still interested, I've found the solution to your problem.
I had more or less the same script for Blender 2.79 and run in the same issue in Blender 2.8x.
All you have to do is adding the variable &quot;object_index&quot; : 0 in MESH_OT_loopcut