[PyOpenCL] assigning unexpected value to global variable