def get_parameter_by_name(device, name):
 for i in device.parameters:
  if (i.original_name == name):
   return i

def get_parameter_by_name ( device , name ) : for i in device . parameters : if ( i . original_name == name ) : return i
find the given devices parameter that belongs to the given name .