Use core-like Site.code instead of Site.lang
Use core-like Site.code instead of Site.lang

- the site code not the language code is needed here
- bugfix for site.language which is a function, not a string

Change-Id: Id8df6cf8209cd4f69b62a2b67524ae3d0aaf84c9

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