<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _add_from_list(self, l):
 """Add locations from a list of either strings or lists or tuples. Lists of lists and tuples are passed to the Location constructor """


        for item in l:
            if isinstance(item, (str, ustr)):
                self._add_from_str(item)
            elif isinstance(item, (list, tuple)):
                location = Location(item)
                self._add_location(location)