Fixed CUDA issues and am now able to run pycuda with python3 (took some manual
editing of the source).