code: def format_file_params(files):
          '''
              Utility method for formatting file parameters for transmission
          '''
          files_payload = {}
          if files:
              for idx, filename in enumerate(files):
                  files_payload["file[" + str(idx) + "]"] = open(filename, 'rb')
          return files_payloaf format_file_params(files):
          '''
              Utility method for formatting file parameters for transmission
          '''
          files_payload = {}
          if files:
              for idx, filename in enumerate(files):
                  files_payload["file[" + str(idx) + "]"] = open(filename, 'rb')
          return files_payload
docs: Utility method for formatting file parameters for transmission