All that really need be done is to add a third argument: reverse=0.findtext(haystack, needle, start, end, reverse)
I understand that'd be like 5 arguments and maybe it'll be hard to for the compiler to understand, but, it's either that or lastfindtext() and lastfindtextEx().
Pretty much every language has a function like lastIndexOf().