def StripTypeInfo(rendered_data):
 if isinstance(rendered_data, (list, tuple)):
  return [StripTypeInfo(d) for d in rendered_data]
 elif isinstance(rendered_data, dict):
  if (('value' in rendered_data) and ('type' in rendered_data)):
   return StripTypeInfo(rendered_data['value'])
  else:
   result = {}
   for (k, v) in rendered_data.items():
    result[k] = StripTypeInfo(v)
   return result
 else:
  return rendered_data

def StripTypeInfo ( rendered_data ) : if isinstance ( rendered_data , ( list , tuple ) ) : return [ StripTypeInfo ( d ) for d in rendered_data ] elif isinstance ( rendered_data , dict ) : if ( ( 'value' in rendered_data ) and ( 'type' in rendered_data ) ) : return StripTypeInfo ( rendered_data [ 'value' ] ) else : result = { } for ( k , v ) in rendered_data . items ( ) : result [ k ] = StripTypeInfo ( v ) return result else : return rendered_data
strips type information from rendered data .