'Removes found elems from list l and returns list of found elems if found.'

def _pluck_from_list(self, l, elems):

    found = []
    for elem in elems:
        try:
            index = l.index(elem)
            found.append(l.pop(index))
        except ValueError:
            pass
    return found
