def parse_yaml(yaml_file):
    """
    This is simple approach to parsing a yaml config that is only
    intended for this SDK as this only supports a very minimal subset
    of yaml options.
    """
    with open(yaml_file) as f:
        data = {None: {}}
        current_key = None
        for line in f.readlines():
            if line.startswith('#'):
                continue
            elif line[0].isalnum():
                key = line.strip().replace(':', '')
                current_key = key
                data[current_key] = {}
            elif line[0].isspace():
                values = line.strip().split(':', 1)
                if len(values) == 2:
                    cval = values[1].strip()
                    if cval == '0':
                        cval = False
                    elif cval == '1':
                        cval = True
                    data[current_key][values[0].strip()] = cval
        return data
