AttributeError: 'list' object has no attribute 'sent_headers'
Python 2.3.5

A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are:
      __doc__ = 'Attribute not found.'
      __getitem__ = <bound method AttributeError.__getitem__ of <exceptions.AttributeError instance at 0xb7e057ec>>
      __init__ = <bound method AttributeError.__init__ of <exceptions.AttributeError instance at 0xb7e057ec>>
      __module__ = 'exceptions'
      __str__ = <bound method AttributeError.__str__ of <exceptions.AttributeError instance at 0xb7e057ec>>
      args = ("'list' object has no attribute 'sent_headers'",)

/home/telec3/web/PEAK/devGuide/MoinMoin/webapi/cgiMoin.py in http_headers(request=['Content-Type: application/x-gzip', 'Content-Length: 37', 'Content-Disposition: attachment; filename=wiki-export-2022-12-07.xml.gz'], more_headers=[])
   83     from MoinMoin import config
   85     if request.sent_headers:
       request = ['Content-Type: application/x-gzip', 'Content-Length: 37', 'Content-Disposition: attachment; filename=wiki-export-2022-12-07.xml.gz'], global sent_headers = undefined
   86         #print "Headers already sent!!!\n"
   87         return

/home/telec3/web/PEAK/devGuide/MoinMoin/wikiaction.py in do_export(pagename='FrontPage', request=<MoinMoin.request.Request instance>)
  604     if mimetype != 'text/xml':
  605         headers.append("Content-Disposition: attachment; filename=%s" % filename)
  606     webapi.http_headers(headers)
       global webapi = <module 'MoinMoin.webapi' from '/home/telec3/web/PEAK/devGuide/MoinMoin/webapi/__init__.pyc'>, global http_headers = undefined, headers = ['Content-Type: application/x-gzip', 'Content-Length: 37', 'Content-Disposition: attachment; filename=wiki-export-2022-12-07.xml.gz']
  608     # copy the body

/home/telec3/web/PEAK/devGuide/MoinMoin/cgimain.py in run(properties={})
  233         else:
  234             try:
  235                 cgitb.handler()
       cgitb = <module 'MoinMoin.support.cgitb' from '/home/telec3/web/PEAK/devGuide/MoinMoin/support/cgitb.pyc'>, handler = <function do_export>
  236             except:
  237                 apply(cgi.print_exception, saved_exc)