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