removed dead code from simple_upload.py