modified ftp.py