def METHOD_NAME(self, method, url, kwargs):
    # Retry requests to the Notify API up to 3 times
    # if they fail with a 503 status, thrown when
    # the admin can't connect to the API.
    for i in [1, 2, 3]:
        try:
            return super().METHOD_NAME(method, url, kwargs)
        except HTTP503Error as e:
            logger.warn("Retrying API request after failure {} {}".format(method, url))
            if i == 3:
                raise e