A = filename
ftp = ftplib.FTP('IP')
ftp.login('USR Name', 'Pass')
ftp.cwd('/Dir')
try:
    ftp.retrbinary('RETR ' + filename, open(i, 'wb').write)
except:
    pass
How to download a file via FTP with Python ftplib