It may be a line buffering issue in upload.py; how could I force autoflush on it if this is the case?
If you set $| = 1; in Perl, and assuming that STDOUT is the default file handle, then that should be inherited by the python program. Otherwise (forgive me monks for I have sinned) in Python you can