def cache_key_mangler(key):
 if six.PY2:
  key = key.encode('utf-8')
 return uuid.uuid5(CACHE_NAMESPACE, key).hex

def cache_key_mangler ( key ) : if six . PY2 : key = key . encode ( 'utf-8' ) return uuid . uuid5 ( CACHE_NAMESPACE , key ) . hex
construct an opaque cache key .