Processes the result from __query to get valid json from every entry.

    :param results: Results from __query
    :type results: str
    :returns: python list of dictionaries containing the relevant results.
    :rtype: list

def __process_results(results):
    """Processes the result from __query to get valid json from every entry.

    :param results: Results from __query
    :type results: str
    :returns: python list of dictionaries containing the relevant results.
    :rtype: list
    """
    if 'no match' in results and 'returning 0 elements' in results:
        return []

    result_list = []

    # Splts the result and cuts first and last dataset which are comments
    split = results.split(sep='\n\n')[1:-1]

    for entry in split:
        entry_dict = {}
        for value in entry.split('\n'):
            if len(value) < 1:
                continue
            (desc, val) = value.split(': ')
            entry_dict[desc.replace('-', '')] = val.strip(' ')
        result_list.append(entry_dict)
    return result_list