def total_result_to_dict(total):
 return {'meta': extract_meta(total), 'duration': _get_duration(world), 'features': [extract_feature_data(feature_result) for feature_result in total.feature_results]}

def total_result_to_dict ( total ) : return { 'meta' : extract_meta ( total ) , 'duration' : _get_duration ( world ) , 'features' : [ extract_feature_data ( feature_result ) for feature_result in total . feature_results ] }
transform a totalresult to a json-serializable python dictionary .