update upload_loc_files.py to use module for file uploads