def avg_real(scores):
    """ Calculates the average for accuracy or std error without 'none'

    Args: 
        - scores: list of accuracy or std errors
    
    Returns:
        - Avg if list is nonempty and real
    
    Exception:
        None
    """

    scores_no_none = [x for x in scores if x != None]
    if len(scores_no_none) == 0:
        return None
    else:
        return sum(scores_no_none) / len(scores_no_none)