code: def load(self, filename):
          
          self.filename = filename
          with open(filename) as CFG:
              self.data = yaml.load(CFG.read())
  
          return self
docs: read configdata from file.
  
          Parameters
          ----------
          filename : string
              the name of the YAML formatted config file.