Python 2.6 syntax fixup
Python 2.6 syntax fixup

{a: b for ..} is not valid syntax in Python 2.6.
Also, this block of code is not optimal data processing.

Change-Id: I703a944df519ee175bde02a6ed67bc5b4c314005

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