Improvements to listpages.py
Improvements to listpages.py

1. Structure of listpages.py now like in other scripts.
2. Removed uneeded except part which caused bad output.
3. Fixed typing error. parameterd -> parameters

Change-Id: Iacc0e929482b4baac12a078bdc9faf813f773444

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