code: def _send_file(self, filename):
          
          # pylint: disable=E1101
          ftp = ftplib.FTP(host=self.host)
          ftp.login(user=self.user, passwd=self.password)
          ftp.set_pasv(True)
          ftp.storbinary("STOR %s" % os.path.basename(filename),
              file(filename, 'rb'))
docs: Sends a file via FTP.