Support passing Bufs to Python