It would be cool to have this added to the main Pywikibot code, but the script would need a review by someone who knows more about the Pywikibot code than I do – I'm not aware of all coding conventions, methods, etc. that are in play, so it is very likely that there are some (or many) things that should be done differently in the script. Any feedback would be appreciated. :-)
--