Minor code improvements:
Minor code improvements:

- use brackets for print statements for py3 compatibility
- use range instead of xrange for py3 compatibility
- None comparison should be done with "is" or "is not"
- use core-like Page.text and Page.save() instead of Page.get()
  and Page.put()

Change-Id: I5121135024c8fc89dc50a4e969adef5d861c5e6f

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