def __tweak_field(fields, field_name, attribute, value):
 for x in fields:
  if (x['name'] == field_name):
   x[attribute] = value

def __tweak_field ( fields , field_name , attribute , value ) : for x in fields : if ( x [ 'name' ] == field_name ) : x [ attribute ] = value
helper function to insert extra data into the field list .