[IMPR] use tools.has_module for checking installed modules
[IMPR] use tools.has_module for checking installed modules

Change-Id: I45388a056ae2e2c79950a6b34f14c71e11663ce0

wikimedia/pywikibot-core,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core