add finalizer for PyBuffer