fixed upload.py