handle = open(path.rstrip("https://stackoverflow.com/") + "https://stackoverflow.com/" + filename.lstrip("https://stackoverflow.com/"), 'wb')
ftp.retrbinary('RETR %s' % filename, handle.write)
handle = open(path.rstrip("https://stackoverflow.com/") + "https://stackoverflow.com/" + filename.lstrip("https://stackoverflow.com/"), 'wb')
ftp.retrbinary('RETR %s' % filename, handle.write)