Add images with bpy.ops.sequencer.image_strip_add

Hello,

I don’t know if you solve your problem,
but I had the same problem and the answer was to change the area context


area = bpy.context.area
old_type = area.type
area.type = 'SEQUENCE_EDITOR'
# call the image_strip_add here and other functions
area.type = old_type 

(thanks to https://blender.stackexchange.com/questions/6101/poll-failed-context-incorrect-example-bpy-ops-view3d-background-image-add)