def set_default(cfg):
    """
    Set initial configuration values

    This is used mostly for setting up an initial set of values
    before using the actual config set. It is important to know
    that using this function would result in a total overwrite of
    the whole config set, so it is only meant to be used before
    anything.

    :param cfg: dictionary containing the initial values
    :raises TypeError: if cfg is not a dict
    """
    global _config
    if type(cfg) != dict:
        raise TypeError('cfg must be dict')
    _config = cfg
