code: def get_opt(self, opt):
          
          for sec in self.sections:
              try:
                  key = self.cp.get(sec, opt)
                  if key:
                      return key
              except ConfigParser.NoOptionError:
                  pass
  
          return None
docs: Get value of option from configuration file
  
          Parameters
          -----------
          opt : string
              Name of option (e.g. output-file-format)
  
          Returns
          --------
          value : string
              The value for the option. Returns None if option not present.