<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def append_fields(self, new_fields):
        '''
        Add fields to the container

        :param new_fields: fields to append
        '''
        for field in new_fields:
            self.push(field)
            if isinstance(field, Container):
                self.pop()