def reformat_contrast(stato):
    """Extract all public data from a ContrastResult object"""
    
    if stato is None:
        return None
    
    # Get public attr names
    # And store return in a dict
    names = [
            attr for attr in dir(stato) if not attr.startswith('_')
            ]
            
    stat_results = {}
    for name in names:
        stat_results[name] = getattr(stato, name)
    
    return stat_results