<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_filter(self, filter_or_string, *args, **kwargs):
 """ Appends a filter. """

        self.filters.append(build_filter(filter_or_string, *args, **kwargs))

        return self