replace print statement with pywikibot.output() which prevents some unicode encoding errors while printing.

Change-Id: Ie70ff75088917fd8c2a08e3d3f3e4a25393f404d