docs: def get(cls, key, section=None, **kwargs):
          """
          Retrieves a config value from dict.
          If not found twrows an InvalidScanbooconfigException.
          """
          section = section or cls._default_sect
          if section not in cls._conf:
              cls._load(section=section)
  
          value = cls._conf[section].get(key)
  
          # if not found in context read default
          if not value and section != cls._default_sect:
              value = cls._conf[cls._default_sect].get(key) if cls._default_sect in cls._conf else None
  
          if value is None:
              if 'default' in kwargs:  # behave as {}.get(x, default='fallback')
                  _def_value = kwargs['default']
                  logger.warn("Static configuration [{}] was not found. Using the default value [{}].".format(key, _def_value))
                  return _def_value
              else:
                  raise InvalidConfigException(u'Not found entry: {}'.format(key))
  
          try:
              value = from_json(value)  # parse value
          except (TypeError, ValueError):
              pass  # if not json parseable, then keep the string value
  
          return value