linux threaded ctypes workaround
transform tree