Updated upload.py, now working