code: def get_filename(self):
          
          fname = self.part.get_filename()
          if fname:
              extracted_name = decode_header(fname)
              if extracted_name:
                  return os.path.basename(extracted_name)
          return None
docs: return name of attached file.
          If the content-disposition header contains no file name,
          this returns `None`