Joonas> That code hasn't gone thru Python interpreter, because the error message Joonas> comes from csh. Joonas> Try to fix the first line from '# !/usr/bin/local/python' to Joonas> '#!/usr/bin/local/python' or more likely: #!/usr/local/bin/python -- Skip Montanaro (skip at pobox.com) (847)971-7098