I have seen a similar problem. Python seems to cope with '\r\n' _or_ '\n'
terminated lines.
However, I have seen .py files _already_ with '\n\r' terms, but FTP'd from a
Unix machine in 'ASCII' mode. This typically creates '\n\r\r' terminators,
which Python does
choke on.
Could this be the problem?
Mark.