def ftpconnect(host, username, userpassword):
client = paramiko.Transport((host, 22))
client.connect(username=username, password=userpassword)
sftp = paramiko.SFTPClient.from_transport(client)
sftp.get(remotepath="/app/logs/A.log", localpath="A.log")