import pywikibot
site = pywikibot.site("en", "wikipedia")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-c617c37a1859> in <module>()
----> 1 site = pywikibot.site("en", "wikipedia")

TypeError: 'module' object is not callable
site = pywikibot.Site('test', 'wikipedia')
site
APISite("test", "wikipedia")