In new item creation, may I suggest to use a search that restrict to human items, instead of plain text as actually? For example researchers often are in plaintext author list of papers items in WD but don't have items themselves.
I've used something like:
generator = pagegenerator.SearchPageGenerator(f'"{name}" haswbstatement:P31=Q5', total=50, site=site, namespaces=[0])
Thank you for this script, which is an incredible service to the community!