Add logfile to python version of upload fix