(bugfix) continue handleargs with localargs
(bugfix) continue handleargs with localargs

pywikibot.handleArgs is guaranteed to return a list (as opposed
to a generator) after parsing all global arguments (such as
-lang and -family). generatorFactory must be instanced after that because it needs the site object.

Change-Id: I365dd03abdd288e5f0e55694f5299b6a7e6511a2

hasteur/g13bot_tools_new,npdoty/pywikibot,trishnaguha/pywikibot-core,xZise/pywikibot-core,happy5214/pywikibot-core,magul/pywikibot-core,VcamX/pywikibot-core,icyflame/batman,smalyshev/pywikibot-core,magul/pywikibot-core,darthbhyrava/pywikibot-local,Darkdadaah/pywikibot-core,npdoty/pywikibot,PersianWikipedia/pywikibot-core,happy5214/pywikibot-core,wikimedia/pywikibot-core,emijrp/pywikibot-core,Darkdadaah/pywikibot-core,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,jayvdb/pywikibot-core,h4ck3rm1k3/pywikibot-core,valhallasw/pywikibot-core,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,TridevGuha/pywikibot-core,h4ck3rm1k3/pywikibot-core