since these UUIDs seem to be single UUIDs of char. length=32 <or> double-length (concatenated) char. length=64,.
then my recommendation (within pyCADF) is to test for length (32 or 64) and if 32 use the previous code to test for valid UUID; if 64 then assume (since this is an OpenStack impl.) and split the 64 char string into 2, 32-char strings and validate both parts are valid UUIDs (concatenated). If neither 32 or 64 length, then consider throwing a format exception...
My 2 cents...
since these UUIDs seem to be single UUIDs of char. length=32 <or> double-length (concatenated) char. length=64,.
then my recommendation (within pyCADF) is to test for length (32 or 64) and if 32 use the previous code to test for valid UUID; if 64 then assume (since this is an OpenStack impl.) and split the 64 char string into 2, 32-char strings and validate both parts are valid UUIDs (concatenated). If neither 32 or 64 length, then consider throwing a format exception...