def _optimize_url(self, path: str):
    path = urlparse.quote(path)
    return f'{self.api}/optimize/{path}'
def _optimize_url(self, path: str):
    path = urlparse.quote(path)
    return f'{self.api}/optimize/{path}'