def convert_uuid_to_es_fmt(uuid_str):
 uuid_base32 = encode_hex_to_base32(uuid.UUID(six.text_type(uuid_str)).hex)
 es_label = uuid_base32.strip('=')
 if six.PY3:
  es_label = es_label.decode('ascii')
 return es_label

def convert_uuid_to_es_fmt ( uuid_str ) : uuid_base32 = encode_hex_to_base32 ( uuid . UUID ( six . text_type ( uuid_str ) ) . hex ) es_label = uuid_base32 . strip ( '=' ) if six . PY3 : es_label = es_label . decode ( 'ascii' ) return es_label
converts uuid to e-series compatible name format .