def add_object_to_path(self, obj, location):
        """Add an object of type JSSContainerObject to location.

        This method determines the correct list representation of an
        object and adds it to "location". For example, add a Computer to
        a ComputerGroup. The ComputerGroup will not have a child
        Computers/Computer tag with subelements "name" and "id".

        Args:
            obj: A JSSContainerObject subclass.
            location: Element or a string path argument to find()

        Returns:
            Element for the object just added.
        """
        location = self._handle_location(location)
        location.append(obj.as_list_data())
        results = [item for item in location.getchildren() if
                   item.findtext("id") == obj.id][0]
        return results
Add an object of type JSSContainerObject to location.

        This method determines the correct list representation of an
        object and adds it to "location". For example, add a Computer to
        a ComputerGroup. The ComputerGroup will not have a child
        Computers/Computer tag with subelements "name" and "id".

        Args:
            obj: A JSSContainerObject subclass.
            location: Element or a string path argument to find()

        Returns:
            Element for the object just added.