from ftplib import FTP_TLS
from picamera import *
s = FTP_TLS ('ftp.lafavre.us')
s.login ('gear@lafavre.us', 'Iotisnumber1!')
s.prot_p()
file = '/home/pi/xkcd.html'
ftppath = ''
filename = input('putfilenamewith .html')
s.cwd (ftppath)
f= open (file, 'rb')
s.storlines('STOR ' + filename, f)
s.dir()
s.sendcmd ('chmod 0664' + filename)
