minor refactoring
circumvent ByteBuffer, notice python process termination