def safeget(d, path, default=None):
    """
    Returns value from dict d with keys from path, separeted by dot.
    If key-path is not in dict, returns None.
    """
    tmp = d
    for key in path.split("."):
        if isinstance(tmp, dict) and key in tmp:
            tmp = tmp[key]
        else:
            return default
    return tmp