<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iterator(self, *argv):
 """ Iterator returning any list of elements via attribute lookup in `self` This iterator retains the order of the arguments """

        for arg in argv:
            if hasattr(self, arg):
                for item in getattr(self, arg):
                    yield item