def find_cal_by_type(standards, std_type):
    """

    :param standards: list, of CalEvent objects
    :param std_type: string, in ['high', 'mid', 'low']
    :return: returns the first CalEvent in the list with the matching standard type
    """

    return next((ce for ce in standards if ce.standard_used == std_type), None)