def convert_locp(locp, converter):
    """
    Convert the given list of card plays using the converter
    :param locp: CardPlays to convert
    :type locp: [CardPlay, ...]
    :param converter: method to convert a CardPlay
    :type converter: CardPlay -> PyJSON or None
    :return: the list of PyJSON
    :rtype: [PyJSON, ...]
    """
    result = []
    for cp in locp:
        converted = converter(cp)
        if converted is not None:
            result.append(converted)
    return result