class Config:
    config = {}

    def __init__(self, config):
        self.config = config

    def get(self, path):
        value = self.config
        for key in path.split('.'):
            try:
                value = value.get(key, {})
            except AttributeError:
                return False
        return value

    def merge(self, config):
        self.config.update(config)

class Config:
    config = {}

    def __init__(self, config):
        self.config = config

    def get(self, path):
        value = self.config
        for key in path.split('.'):
            try:
                value = value.get(key, {})
            except AttributeError:
                return False
        return value

    def merge(self, config):
        self.config.update(config)
