[Pywikibot-commits] [Gerrit] remove unused query import, pep8 changes, code improvements - change (pywikibot/compat)