initial python buffer implementation