upload.py : Making pylint happy

While checking the job with Jenkins, pylint report some easily fixable
warnings. So let's make them :o)