This patch adds support on bgl.Buffer with the minimal requiered implementation of Python Buffer Protocol (https://docs.python.org/3/c-api/buffer.html). This is good when anyone needs to work in python with a big bgl.Buffer, because it avoids the copy of the data.
I've used it to take a ImageRender and save it to disk,