Change from buffer to buffpy