PYTHON AUTOMATED FTP SCRIPT Yesterday's data

#!/usr/local/bin/python

import ftplib
import time
import sys
import datetime
from datetime import date, timedelta
import shutil

yesterday = date.today() - timedelta(1)
yesterday_minus_1 = yesterday.strftime('%Y%m%d')

ftp = ftplib.FTP('ftp.server.com')
ftp.login('fuser','password')

 def printerFunc(val1,val2,val3):
    print val1, val2, val3

def getCurrentLogFile(dt=datetime.datetime.now()):
    return "/home/application/log/ftpGet."+dt.strftime("%Y%m%d")+".log"

def printToCurrentLog(line):
    filename = getCurrentLogFile();
    fileObj = open(filename,'a')
    fileObj.write(datetime.datetime.now().strftime("%Y/%m/%d %H:%M:%S : ")+line+"\n");
    fileObj.close();

def download(ftp,directory,file):
    ftp.cwd(directory)
    f = open(file,"wb")
    ftp.retrbinary("RETR " + file,f.write)
    f.close()

ftpList = ["ftp", "ftp", "ftp"]

directoryList  = ["/Production/" , "/Production/Templates/Active/", "/Production/Configuration/"]

fileList = ["secdef.dat.gz", "templates.xml", "config.xml"]

for a, b, c in zip(ftpList, directoryList, fileList):
    printerFunc(a,b,c)

for directory, file_name in zip(directoryList, fileList):
    download(ftp, directory, file_name)