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

 """Removing obsolete items"""

        self.rdata = [(filename, data) for filename, data in self.rdata
                      if is_module_or_package(filename)]