Remove unused imports
Fix formatting
Fix module docstring
Rename 'write_file' to 'store_upload' to be more specific about what this function does
Make sure tests pass without 'testfiles' directory containing corrupt zip file