gets supported langs as an array

def get_lang_array(self):
        """gets supported langs as an array"""

        r = self.yandex_translate_request("getLangs", "")
        self.handle_errors(r)

        return r.json()["dirs"]