code: def translate(self, text, lang, proxies=None, format="plain"):
      
      data = {
        "text": text,
        "format": format,
        "lang": lang,
        "key": self.api_key
      }
      try:
        response = requests.post(self.url("translate"), data=data, proxies=proxies)
      except ConnectionError:
        raise YandexTranslateException(503)
      else:
        response = response.json()
      status_code = response.get("code", 200)
      if status_code != 200:
        raise YandexTranslateException(status_code)
      return response
docs: Translates text to passed language
      >>> translate = YandexTranslate("trnsl.1.1.20130421T140201Z.323e508a33e9d84b.f1e0d9ca9bcd0a00b0ef71d82e6cf4158183d09e")
      >>> result = translate.translate(lang="ru", text="Hello, world!")
      >>> result["code"] == 200
      True
      >>> result["lang"] == "en-ru"
      True