@staticmethod
def _adopt_contact_list(contact_list):
    """
        A contact list is returned from the API with the 'name' key as 'contactlist_name' OR as
        `list_name`. This is different from the other elements, so we patch the object to be
        similar to the other objects returned by the library.

        :param contact_list:
        :return:
        """
    if not contact_list:
        return contact_list
    contact_list = dict(contact_list)
    if 'contactlist_name' in contact_list:
        contact_list['name'] = contact_list['contactlist_name']
        del contact_list['contactlist_name']
    if 'list_name' in contact_list:
        contact_list['name'] = contact_list['list_name']
        del contact_list['list_name']
    return contact_list
