code: def get_object_by_name(self, name):
          
          for obj in self.objects:
              if obj.name == name:
                  return obj
          raise ValueError
docs: Find an object
  
          :param name: Name of object.  Case-sensitive.
          :rtype: Object if found, otherwise ValueError