How to create FragmentedPatch in python

I haven’t looked at your files (on my phone), but indeed that method has also proved more reliable to me. This might be related/relevant to your case: