code: def _handle_received_k_element(self, k_element: BeautifulSoup):
          
          if k_element['ok'] == "1":
              self.connected = True
  
              if 'ts' in k_element.attrs:
                  # authenticated!
                  log.info("[+] Authenticated successfully.")
                  self.authenticated = True
                  self.callback.on_authenticated()
              elif self.should_login_on_connection:
                  self.login(self.username, self.password)
                  self.should_login_on_connection = False
          else:
              self.callback.on_connection_failed(login.ConnectionFailedResponse(k_element))
docs: The 'k' element appears to be kik's connection-related stanza.
          It lets us know if a connection or a login was successful or not.
  
          :param k_element: The XML element we just received from kik.