Cleans up upload.py