Picks best RSA key for import from the import keys arrays.
        :param import_keys:
        :return:

def get_best_import_key(self, import_keys):
        """
        Picks best RSA key for import from the import keys arrays.
        :param import_keys:
        :return:
        """
        rsa2048 = None
        rsa1024 = None

        for c_key in import_keys:
            if c_key is None \
                    or 'type' not in c_key \
                    or c_key['type'] is None:
                logger.info("Invalid key: %s", c_key)
                continue

            if rsa1024 is None and c_key['type'] == 'rsa1024':
                rsa1024 = c_key
            if rsa2048 is None and c_key['type'] == 'rsa2048':
                rsa2048 = c_key

        return rsa2048 if rsa2048 is not None else rsa1024