import csv
import pywikibot
with open('category-list.csv', 'r') as csvfile:
    reader = csv.reader(csvfile,delimiter="~")
    for row in reader:
        title = row [0]
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-10-aac403b19af5> in <module>()
----> 1 for row in reader:
      2     title = row [0]

ValueError: I/O operation on closed file.
site = pywikibot.Site('ta', 'wikipedia')
page = pywikibot.Page(site, title)
page.text = page.text.replace('கொலொம்பியா','கொலம்பியா')
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-9-da5aaf31acaf> in <module>()
----> 1 page = pywikibot.Page(site, booktitle)
      2 page.text = page.text.replace('கொலொம்பியா','கொலம்பியா')

NameError: name 'booktitle' is not defined
        page.save()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-6-d7b4cd1659ea> in <module>()
----> 1 page.save()

NameError: name 'page' is not defined