code: def contracts_derived(self):
          
          inheritance = (x.inheritance for x in self.contracts)
          inheritance = [item for sublist in inheritance for item in sublist]
          return [c for c in self._contracts.values() if c not in inheritance]
docs: list(Contract): List of contracts that are derived and not inherited.