import yaml


def parse_config(path: str) -> object:
    """
    Read configuration file
    """
    cfg = []
    try:
        with open(path, 'r') as ymlfile:
            cfg = yaml.safe_load(ymlfile)
        return cfg
    except Exception as err:
        print(err)