upload.py: fixed reports from flake8/pylint
upload.py: get sensible default values for configuration even without a config file