Contrary to the documentation, finditer() did not take pos and endpos keyword arguments.
Attach a file by drag & drop or click to upload