[BUGFIX] Fix for ProcessTitle() and ReplaceLink(), pep8 changes
[BUGFIX] Fix for ProcessTitle() and ReplaceLink(), pep8 changes

- mightBeLoc must be migtBeLcl in ProcessTitle()
- fix for list comprehensive variable d --> s
- i18n.twtranslate may have a third parameter for the dictionary
- pep8 changes (indentation fix)

Change-Id: I7001045bb6e649719404f6c6193c6b33af39e88b

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