Accessing the new External Image Save functionality using Python
The patch adds an additional option to the Save as mainfile operator:

bpy.ops.wm.save_as_mainfile(external=True)


In a build with this patch applied, the option should show as checkbox in the side panel in the file navigator if you use Save as... or Save Copy...