code: def logout(self):
          
          if not hasattr(self, "_fb_h"):
              h_r = self._post(self.req_url.MODERN_SETTINGS_MENU, {"pmid": "4"})
              self._fb_h = re.search(r'name=\\"h\\" value=\\"(.*?)\\"', h_r.text).group(1)
  
          data = {"ref": "mb", "h": self._fb_h}
  
          r = self._get(self.req_url.LOGOUT, data)
  
          self._resetValues()
  
          return r.ok
docs: Safely logs out the client
  
          :param timeout: See `requests timeout <http://docs.python-requests.org/en/master/user/advanced/#timeouts>`_
          :return: True if the action was successful
          :rtype: bool