def METHOD_NAME(self, action, params, method="POST"):
    url = self.url + "?" + urlencode({"a": action})
    if method == "GET":
        response = requests.get(
            url,
            headers=self.headers,
            data=params,
            verify=self.verify,
            allow_redirects=self.allow_redirects,
        )
    if method == "POST":
        response = requests.post(
            url,
            headers=self.headers,
            data=params,
            verify=self.verify,
            allow_redirects=self.allow_redirects,
        )
    return response