code: def download_file(self, remote, local):
          
          file = open(local, 'wb')
          try:
              self.download(remote, file)
          finally:
              file.close()
docs: Downloads a file
          :param remote: remote file name
          :param local: local file name
          :return: