Convert the Ideone language list into a Python dictionary.

def _collapse_language_array(language_array):
        """
        Convert the Ideone language list into a Python dictionary.
        """
        language_dict = {}
        for language in language_array.item:
            key = language.key[0]
            value = language.value[0]
            language_dict[key] = value

        return language_dict