code: def remove_excluded(self):
          
          # import yaml
          # print yaml.dump({k:v.__json__() for k,v in self.sources.items()}, default_flow_style=False)
          sources = list(self.sources.values())
          for src in sources:
              if src.excluded:
                  del self.sources[src.name]
              src.imports = [m for m in src.imports if not self._exclude(m)]
              src.imported_by = [m for m in src.imported_by if not self._exclude(m)]
docs: Remove all sources marked as excluded.