replace print statements with pywikibot.output() (like in core)

Change-Id: Ia42a9ea7e4b728b4777fd5e918ec03ffb012f6b0
Merge "replace print statements with pywikibot.output() (like in core)"