(sorry don't have time to run through the OP script and check what you're getting for outputs, but...)
- I'm not even entirely sure how these images would stitch together
- between 1.jpeg and the rest, there is very little overlap. RANSAC likely won't find matchable points.
- you're asking for a pretty severe homography of the scene.