Python csv errors using Python 2.3 for code written with Python 2.2

I am a new systems administrator (new to my company and new to the field) trying to get some Python code to work- that the previous systems administrator had written. He used Linux with Python 2.2, importing a csv module to run his code. I am now trying to run this code on a Macintosh iBook, running Panther (Mac OS 10.3.4) which comes bundled with its own csv module.

I am getting the following errors when I try to run his code. (Apparently it used to work fine when he ran it from his laptop on Linux- using Python 2.2)

This code is supposed to mount users' C drives and search for .pst files ( and other files ) and print them out. (The code looks like it may also search for media files and delete non-work related files). This project came up because my boss would like to know where all the .pst files are (on the Windows NT network that is mounted to our Solaris servers using Samba) Plus he wanted to be able to use the same tools the other administrator used, but for some reason, I can't get it to run.

I realize that without being able to connect to my NT network, it will be impossible for anyone to duplicate my exact errors, but thought that someone may have insight into what I can change in this code to get it up and running. If nothing else, I would like a script to mount user's personal C: drives to search for .pst folders. I can work on the extra functionality of this code at another time.

Here are all of the pieces of code that are supposed to work together:

____________________________________
When I run pstfinder.py I get the following errors:
keroleen:~/Desktop/python/killjoy juliann$ python pstfinder.py
File "pstfinder.py", line 11
def execute:
^
SyntaxError: invalid syntax

_______________________________________
Here is the second half of the code that works with pstfinder.py
______________________________________

###killjoy.py looks for files (.pst files) and prints them out- plus does other clean up activity on non-work related files

def listnotscanned(self, clientlist):
"""Andy wants to know which machines were in Chester's list but not known by the DC."""
chesterslist = usermapping.keys()
missingpcs = [ pc for pc in chesterslist if pc not in clientlist ]
return missingpcs

Who is Participating?

Or something like that. My guess is that it's intended to have arguments. To be consistent with its ancestor (Killjoy), it should probably look something like this:

def execute(self, clientlist, delete=False):

It appears to me that the Mailjoy class programming has not yet been completed.

There was a major change in the csv module from 2.2 to 2.3. His code would have to be run using Python 2.2 in order to work. Otherwise, you'll have to rewrite it, and that will probably be a fairly significant task. Fortunately, it's possible to install multiple versions of python on one machine. I verified the difference in the csv modules by comparing the 2.2 and 2.3 versions on one of my Debian machines.