Fixed some hopefully last bugs in gp_cuda.py