def _attach_files(filepaths, email_):
for filepath in filepaths:<EOL><INDENT>base = os.path.basename(filepath)<EOL>with open(filepath, "<STR_LIT:rb>") as file:<EOL><INDENT>part = MIMEApplication(file.read(), Name=base)<EOL>part["<STR_LIT>"] = '<STR_LIT>' % base<EOL>email_.attach(part)<EOL><DEDENT><DEDENT>
Take a list of filepaths and attach the files to a MIMEMultipart.

    Args:
        filepaths (list(str)): A list of filepaths.
        email_ (email.MIMEMultipart): A MIMEMultipart email_.