def METHOD_NAME(self):
    try:
        with open('/proc/sys/kernel/random/uuid') as rand_uuid:
            rand_uuid_string = rand_uuid.read().strip()
            return rand_uuid_string
    except IOError:
        try:
            import uuid
            return uuid.uuid4()
        except:
            raise UUIDError('Could not generate new UUID!')