Looks like the bsurface addon is not supported officially according to this answer. It works fine when I am clicking on "Add Surface" button from GUI , but when I execute from script
bpy.ops.gpencil.surfsk_add_surface(edges_U=50, edges_V=20, cyclic_cross=False, cyclic_follow=False, loops_on_strokes=True, automatic_join=True)
AttributeError: 'GPENCIL_OT_SURFSK_add_surface' object has no attribute 'is_fill_faces'
This definitely doesn't feel like a context error, but more to do with the addon.
I would like to know if there is a fix for this problem ? Or otherwise please suggest what alternatives to look for bsurfaces addon that go well with scripting as well ?