def parse_tags(tagset):
    """Convert the tagset as returned by AWS into a normal dict of {"tagkey": "tagvalue"}"""
    output = {}
    for tag in tagset:
        # aws is inconsistent with tags sometimes they use caps and sometimes not
        if 'Key' in tag:
            output[tag['Key']] = tag['Value']
        if 'key' in tag:
            output[tag['key']] = tag['value']
    return(output)