import toml


def parse_config_file(path):
    """Parse TOML config file and return dictionary"""
    try:
        with open(path, 'r') as f:
            return toml.loads(f.read())
    except:
        open(path,'a').close() 
        return {}