Adapt code for wmflabs. Replace pywikipedia by pywikibot.