Fix for Py3 .as_buffer
Merge bodge:src/pycuda