upload.py: added a -f flag to test on the command line