How to download ftp file throght ftplib python
===

I am having following code chich easily connect to the ftp server and opening a zip file.I want to download that file into local system How to do that?

    # Open the file for writing in binary mode

    print 'Opening local file ' + filename
    
    file = open(filename, 'wb')
    
    
    
    # Download the file a chunk at a time
    
    # Each chunk is sent to handleDownload
    
    # We append the chunk to the file and then print a '.' for progress
    
    # RETR is an FTP command
    
    print 'Getting ' + filename
    
    ftp.retrbinary('RETR ' + filename, handleDownloa

    d)
    
    
    # Clean up time
    
    print 'Closing file ' + filename
    
    file.close()