pwb.py login
  File "<ipython-input-2-d6400450f46f>", line 1
    pwb.py login
               ^
SyntaxError: invalid syntax
pwb.py login()
  File "<ipython-input-4-e0eed21fe91b>", line 1
    pwb.py login()
               ^
SyntaxError: invalid syntax
pwb.py login
  File "<ipython-input-5-d6400450f46f>", line 1
    pwb.py login
               ^
SyntaxError: invalid syntax
import pywikibot
site = pywikibot.Site('test', 'wikidata')
site
DataSite("test", "wikidata")