Use JSON for Pywikibot

Change-Id: I66d94f3fef3ae608af0e0496fd1f96c3ff1cba77