basic methods for python buffers