added example to tutorial.md [ci-skip]
minor tweak to buffer.py