import yaml


def read_yaml(user_yaml):
    """
    Load and return data from userdefined yaml file
    :param user_yaml: yaml file location
    :return: Json serialised version of Yaml
    """
    with open(user_yaml, 'r') as stack_yaml:
        return yaml.safe_load(stack_yaml)