Oh, I'm sorry, I didn't understand what you meant at first. Then I read your reply over again and noticed that you said that the problem lied in os.path.getsize() when I tried to run it on the contents of an open file.
I'll try the method you outlined now. -- http://mail.python.org/mailman/listinfo/python-list