sounds like it. vi sock.py shows '$' at the end of each line. however when i went to a unix machine and recreated the file, the problem went away. thanks for all the help regards