A slight correction:
not_existing = [wikipedia.Page(wikipedia.getSite(), pname).title() for pname in re.findall(r"title=(.*?)&action=edit", fullsourcetext)] def exists(page): return page.title() not in not_existing