Updated upload.py to conform to PEP 8.