def p_list_formatter(primer_list):
    """
    Reformat the primer list (remove unnecessary characters from biopython2 output).
    Args:
        primer_list (list): list from list_from_gen output
    Returns:
        primer_dimers (list): list with unnecessary chars removed.
    """
    reformat_p_list = []
    primer_dimers = []
    reformat_p_list = [each_item.replace('\\n', ' ').split() for each_item in primer_list]
    for each_item in reformat_p_list:
        primer_dimers.append((each_item[0].replace('(', '').replace('\'', ''),
                              each_item[2].replace('\'', ''), each_item[4],
                              each_item[5].replace('\')', '')))
    return primer_dimers