import pywikibot
site = pywikibot.Site('it', 'wikibooks')
site
APISite("it", "wikibooks")
page = pywikibot.Page(site, 'test')
page.exists()
False
page = pywikibot.Page(site, 'it')
page.exists()
False
page.text
''
page.text = 'Hello world'
page.save()
Page [[It]] saved
python replace.py -help
  File "<ipython-input-11-fd05561ccd9c>", line 1
    python replace.py -help
                 ^
SyntaxError: invalid syntax