code: def connect(host, port, username, password):
          
          # Instantiate ftplib client
          session = ftplib.FTP()
  
          # Connect to host without auth
          session.connect(host, port)
  
          # Authenticate connection
          session.login(username, password)
          return session
docs: Connect and login to an FTP server and return ftplib.FTP object.